Cameronsplaze / Cameronsplaze/AWS-ContainerManager
[Optimization] Use ECR's `Pull Through Cache` instead of pulling the image url directly
- Dominant language
- Python
- Stars
- 2
- Forks
- 0
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 5
Description
**Is your feature request related to a problem? Please describe.**
This might speed up how long everything takes to turn on. **Before doing this**, we need tests and/or scripts to time how long it actually takes to get the service online. (If there's a tiny improvement for a LOT of complexity, it's not worth it).
**Describe the solution you'd like**
The idea is if we use `Pull Through Cache`, you'll always have the latest/greatest image available to EC2, and since ECR is in network, it should download it fast (assuming it already has the latest image)
I think this is something that should be optional, since
1) it adds cost since the image is stored in ECR, and you're paying for space.
2) You have to provide creds to be able to download from specific areas like GitHub/Docker. (That's what the docs say at least. Try it without, maybe it's just like pulling from them with the cli.)
**Describe alternatives you've considered**
This is an optional feature, the alternative is to just not do it and download directly from the source.
**Additional context**
- [cdk construct](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecr.CfnPullThroughCacheRule.html)
- [Blog post here](https://aws.amazon.com/blogs/aws/announcing-pull-through-cache-repositories-for-amazon-elastic-container-registry/)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.