alphagov / govuk-infrastructure

Terraform turnup automation for the EKS Kubernetes clusters that host GOV.UK. See https://github.com/alphagov/govuk-helm-charts for application config.
MIT License
138 stars 24 forks source link

Enable ghcr.io pull-through cache for ECR #1371

Closed theseanything closed 1 month ago

theseanything commented 1 month ago

This commit creates a pull-through cache rule to pull images from ghcr.io. This allows us to push images to ghcr.io instead of directly to AWS ECR. We need to explicitly create the repositories for the pull-through cache, as ECR doesn't support cross-account permissions to create the ECR repositories on the fly.