Skip to main content

Container Registry

The Example Voting App showcases how easy it is to put services into containers. To distribute these services, we need to build container images and store them in a registry. In this case we use the Amazon Elasitc Container Registry (Amazon ECR).

The code to create the needed registries, is split into two pieces

Besides this, we also need to have a customer-managed key that is managed by the AWS Key Management Service(KMS). As with the registry code, this is also split into two parts

We then use the terragrunt dependency feature to get access to the information:

infrastructure-live/dev/eu-central-1/data-stores/ecr/terragrunt.hcl
loading...

With this we specify module dependencies. In addition, we also get access to the outputs and can pass them on to the resources.