[ecr] CDK DockerBundling should use the underlying default image from ECR
See original GitHub issueAs 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:
- Created 3 years ago
- Reactions:37
- Comments:18 (9 by maintainers)
Top GitHub Comments
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.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 ofPythonFunction
(https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-lambda-python.PythonFunction.html).