How do you reduce ECR/NAT data transfer costs?
AdvancedProductionArchitecture & Design Decisions
Answer
Create VPC interface endpoints for ecr.api and ecr.dkr plus the S3 gateway endpoint (ECR layers are served from S3), so pulls skip the NAT gateway. Replicate images to each region you run in, and keep images small. This often removes a surprising line item from the monthly bill.
More on Architecture & Design Decisions
How would you design a container build-and-deploy pipeline from commit to production?AdvancedWhen should you use Docker Compose, Swarm, ECS, or Kubernetes?IntermediateHow do you decide how many processes belong in one container?BeginnerHow do you design the config strategy for containerized apps (12-factor)?IntermediateHow would you containerize a legacy app that writes to local disk and holds sessions in memory?AdvancedAlpine or Debian-slim for a Python service?Intermediate