question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ecr] CDK DockerBundling should use the underlying default image from ECR

See original GitHub issue

As per the latest DockerHub rate limit release, the activity of running cdk bundling is causing us rate limit issues. It would be great if CDK would switch the default dockerimage from “amazon/aws-sam-cli-build-image-” https://hub.docker.com/u/amazon to an image hosted in AWS ECR.

Use Case

Our build systems run cdk deploy which will bundle assets for lambda functions. For bundling the assets, cdk would pull amazon/aws-sam-cli-build-image and perform the activity. It would be great to have CDK rely on an image hosted outside of DockerHub.

Error seen

Unable to find image ‘amazon/aws-sam-cli-build-image-python3.6:latest’ locally docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:37
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

11reactions
nbailliecommented, Dec 2, 2020

With the release of Amazon ECR Public Gallery could it be moved to use : public.ecr.aws/amazonlinux/amazonlinux:latest

Im guessing however aws-sam-cli-build* might also move there at some point.

9reactions
AndyEfaacommented, Nov 6, 2020

I can confirm the issue. This is causing all of our pipelines to fail. In our case, the image amazon/aws-sam-cli-build-image-python3.7 is build in the context of PythonFunction(https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-lambda-python.PythonFunction.html).

Read more comments on GitHub >

github_iconTop Results From Across the Web

aws-cdk/aws-ecr-assets module - AWS Documentation
DOCKER is the default and you don't need to configure it on the asset itself. Use asset.imageUri to reference the image. It includes...
Read more >
@aws-cdk/aws-ecr-assets | Yarn - Package Manager
This module allows bundling Docker images as assets. Images from Dockerfile. Images are built from a local Docker context directory (with a Dockerfile...
Read more >
@aws-cdk/aws-ecr-assets - npm
DOCKER is the default and you don't need to configure it on the asset itself. Use asset.imageUri to reference the image. It includes...
Read more >
aws cdk push image to ecr - Stack Overflow
The new one (will become the default in the future), where a single ECR repository will be created by doing cdk bootstrap and...
Read more >
Cory Hall - Noise
The post CDK Pipelines: Continuous delivery for AWS CDK applications showed how you can use CDK Pipelines to deploy a TypeScript-based AWS ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found