title: Using a public ECR image for lambda function
body: <p>Is it currently possible to use a public ECR image to deploy a lambda? I have tried to create a public ECR image but I see an error in the web interface. I'm seeing an error: &quot;This is an invalid Elastic Container Registry Image URI&quot;</p>
  <p>Dockerfile:</p>
  <pre><code>
  FROM public.ecr.aws/lambda/nodejs:12
  # Alternatively, you can pull the base image from Docker Hub: amazon/aws-lambda-nodejs:12
  
  COPY app.js package.json /var/task/
  
  # Install NPM dependencies for function
  RUN npm install
  
  # Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
  CMD [ &quot;app.handler&quot; ]
  </code></pre>
  <p><a href="https://i.stack.imgur.com/e1aGH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/e1aGH.png" alt="enter image description here" /></a></p>