Questions tagged [aws-ecr]

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.

111 questions
0
votes
1 answer

is there any way to filter ECR image scan findings?

I have a cloudwatch event that scans ECR repository for Vulnerabilities connected to SNS topic that triggers the notification to specified end point. Here my requirement is to filter the scan findings like trigger the SNS topic only when scan finds…
0
votes
1 answer

Github action deploy docker to AWS ECS ECR

Hi I want to use Github action to build and push my github repo's frontend and backend images to AWS ECR. How change this part of the Github action's config?? - name: Build, tag, and push image to Amazon ECR id: build-image env: …
lllllll
  • 319
  • 1
  • 4
  • 13
0
votes
1 answer

Can't modify(patch) docker image id of existing kubernetes deployment definition on eks(aws)

I created CodePipeline definition on aws. On the beginning I build docker image and send it to ecr (container registry on aws). When the docker image has been sent to the registry I call lambda function that should update definition of existing…
0
votes
1 answer

AWS restrict specific ECR images to specific IAM users?

I'm running a Docker host based on AWS Lightsail targeted individuals for hosting their spare time smaller scale projects. I'd love to also offer Docker image hosting via AWS ECR, but obviously I wouldn't want one customer's images to be accessible…
Mathias Lykkegaard Lorenzen
  • 15,031
  • 23
  • 100
  • 187
0
votes
2 answers

To run aws ECR scan commands in jenkinsfile

Trying to run below 2 commands in Jenkins file NOTE: below commands are working fine locally where Jenkins is installed sh ''' aws ecr start-image-scan --registry-id 123 \ --repository-name test1 \ --image-id…
0
votes
1 answer

Push to ECR present in different AWS account from Jenkins CI/CD

I have Jenkins Slave node as EC2 instance where i am running my CI/CD and pushing image to AWS ECR. stage('Push Image to ECR'){ steps{ withAWS(region: 'us-east-1', roleAccount: shared_services_account, role: …
0
votes
1 answer

argument errors when using using Python to access to aws ecr

here is the function: def sh(*command, read_output=False, **kwargs): command_text = " ".join(command) print(f"\t> {command_text}") try: if read_output: return check_output(command, **kwargs).decode("utf8") …
JamesWang
  • 1,175
  • 3
  • 14
  • 32
0
votes
2 answers

AWS ECR Login on Win CMD

I am trying to run the AWS CLI login for ECR, however, I haven't succeed in running it properly on Windows CMD. On *nix command is quite simple: $(aws ecr get-login --no-include-email --region ) While on windows, I have tried different…
denizdurmus
  • 1,289
  • 1
  • 13
  • 39
0
votes
1 answer

Docker Push Adding Tags instead of Images

I have a private AWS ECR repository where I am pushing images. I'm running the following commands to push images, 1. docker build -t $REPOSITORY_URL:develop -f ./docker/root/dockerfile . 2. docker push $REPOSITORY_URL:develop This works and I can…
MillerC
  • 663
  • 1
  • 11
  • 26
0
votes
1 answer

specify tag immutability in AWS ECR using cloudformation

Is it possible to specify image tag immutability in an AWS ECR CloudFormation template? Image tag immutability is an option at https://docs.aws.amazon.com/cli/latest/reference/ecr/create-repository.html but I don't see any obvious way to do it at…
tschumann
  • 2,776
  • 3
  • 26
  • 42
0
votes
2 answers

Pulumi: how to create a CloudWatch event rule for a repository

I am trying to capture PutImage event from a specific ECR repository using Cloudwatch to trigger a Lambda. My problem is with eventPattern being typed as 'string': export const myTestRepo = ECRTemplate('my-test-repo'); export const eventRule = new…
pbn
  • 2,406
  • 2
  • 26
  • 39
0
votes
0 answers

terraform wants to create imported resources

I am trying to import some of my ecr repositories into terraform. However, when I plan them, it seems like terraform wants to create them. I followed this method: previously wrote the configuration (ecr.tf). Did terraform import…
shrimpy
  • 653
  • 3
  • 11
  • 27
0
votes
1 answer

AWS login authentication after expiry of 12 hours

I have docker swarm cluster of 5 nodes (3 Manager and 2 worker nodes).Deploying images from AWS ECR registry. Before starting services authenticating Docker with ECR using command "aws ecr get-login -" on all the Swarm nodes As the login token is…
Zaks
  • 668
  • 1
  • 8
  • 30
0
votes
1 answer

Send ECS Container Logs to CloudWatch

We've a PHP application that is pushed to ECR Fargate and we've configured an ECS task definition for it, and it works fine as a container in ECS. I've configured aws-logs for the application and it sends the app logs normally to cloudwatch, but I'm…
0
votes
0 answers

Build a docker image on AWS Codebuild based on an image pulled from an ECR of another user: "no basic auth credentials"

I have a line in my Dockerfile like this: FROM 6*********.dkr.ecr.ap-southeast-1.amazonaws.com/*************:ff03401 This ECR is owned by another user. As recommended in this question, I am trying to log in by using these commands in the build…
user6269864