Questions tagged [amazon-ecr]

Amazon ECR stands for "Amazon Elastic Container Registry". It is a part of Amazon Web Services (AWS) and is a managed Docker container registry that stores and manages Docker container images.

Amazon Elastic Container Registry (ECR) is a fully managed container registry that makes it easy for developers to store, manage, and deploy container images. Amazon ECR eliminates the need to operate your own container registry or worry about scaling the underlying infrastructure. Amazon ECR hosts your images in a highly available and scalable architecture, allowing you to reliably deploy containers for your applications. Integration with AWS Identity and Access Management (IAM) provides resource-level control of each repository.

For more details about the product, click here. To get started with Amazon ECR, please see the User Guide.

888 questions
5
votes
1 answer

Image not found: 404 Client Error: Not Found: aws-ecr-push-image atlassian pipeline

I'm using the Atlassian pipeline to build and push the docker image to AWS ECR but build is getting tear down with following message. INFO: Executing the aws-ecr-push-image pipe... INFO: Found credentials in environment variables. INFO:…
5
votes
0 answers

Starting Amazon EC2 Spot instance to run docker image programmatically

I wish to move some ECS containers out of ECS cluster to spot EC2. What is canonical way to start/stop spot EC2 instance executing docker image. The main reason is that I wish container to have public IP + VPC IP I do not not wish to reinvent…
5
votes
1 answer

TeamCity: push docker image to AWS ECR

Running TeamCity 2019.1.4 with one server and three separate agents. Both agents and the server are running in their respective server/agent containers in separate EC2 instances. I want the build artifact (docker image) to be pushed to the ECR.…
naimdjon
  • 3,162
  • 1
  • 20
  • 41
5
votes
2 answers

The deployment specifies that the revision is a null file, but the revision provided is a zip file

I am using CodeDeploy integrated into CodePipeline. I am trying to deploy an image from ecr to ecs. The whole infrastructure is built with CloudFormation. The template for the Pipeline deployment…
5
votes
4 answers

How do I create an IAM role in Terraform for Amazon ECR?

Following on the back of this answer, I'm trying to create an aws_iam_role that allows for access to ECR. However, when I define the following: resource "aws_iam_role" "jenkins_ecr_role" { name = "JenkinsECRRole" assume_role_policy =…
5
votes
2 answers

AWS ECS: VPC Endpoints and NAT Gateways

According to the AWS documentation on NAT Gateways, they cannot send traffic over VPC endpoints, unless it is setup in the following manner: A NAT gateway cannot send traffic over VPC endpoints [...]. If your instances in the private subnet must…
guychouk
  • 671
  • 1
  • 8
  • 28
5
votes
1 answer

Restrict access to namespace in ECR

I want to restrict an EC2 instance to EC2 container registry (ECR) repositories with the same namespace. The IAM instance role should only can pull all repositories under AWS_ACCOUNT_ID.dkr.ecr.REGION.amazonaws.com/test-namespace/.... Nothing…
Dominik
  • 2,283
  • 1
  • 25
  • 37
4
votes
0 answers

How to suppress findings on old/superseded AWS ECR images on AWS Inspector?

We are using AWS Inspector to scan vulnerabilities on our AWS ECR repositories. When there is a new image on a certain repository, we would like to suppress findings from past / superseded images, keep active only findings from the latest image for…
Diogo Melo
  • 1,735
  • 3
  • 20
  • 29
4
votes
3 answers

How to delete all images in an ECR repository?

I would like to know the CLI command to delete all images in an ECR repo.
Luv
  • 522
  • 5
  • 13
4
votes
1 answer

Deploying a private ECR image written in Rust in Greengrass v2 failed

I have been trying to deploy an image stored in a private ECR to Greengrass v2. I keep getting the following error: 2022-07-07T19:54:22.811Z [ERROR] (pool-2-thread-47) com.aws.greengrass.deployment.activator.DeploymentActivator: merge-config.…
MRack
  • 41
  • 4
4
votes
0 answers

How to pull a private docker image from AWS ECR to use with the Testcontainers library in Java/Kotlin?

I am trying to programmatically create and spin up a Testcontainers GenericContainer from a docker image hosted in a private AWS ECR repository. This will be used for automated integration tests, will be run locally and within CICD pipelines. I know…
4
votes
5 answers

Github actions fails when pushing docker image to ECR

I'm referring to the official github guide to set up automated deploy to ECS https://docs.github.com/en/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service My deploy.yaml workflow looks identical to the…
4
votes
1 answer

Boto3: How to get newest docker image from ECR?

I want to get the newest Docker image from ECR using boto3. Currently I'm using describe_images method from the ecr client and I get a dictionary with imageDetails import boto3 registry_name = 'some_registry_name_in_aws' client =…
Miguel Trejo
  • 5,913
  • 5
  • 24
  • 49
4
votes
0 answers

AWS Beanstalk "eb-docker" is not registered

I have a Docker-backed AWS Elastic Beanstalk application. I pull the image from a private AWS ECR. However, I get the "Instance deployment failed..." error. In the logs, I see 2021/12/08 21:57:49.261047 [INFO] Executing instruction:…
4
votes
1 answer

unable to execute 'gcc': No such file or directory when running docker build

I was trying to create a docker image for my python script and upload it to AWS ECR and then use it in Lambda. Our python runtime is 3.8 shown on the AWS console so I just followed this…