Amazon Elastic Container Registry (ECR)
Storing container images in Amazon ECR.
When to use it
You should use the AWS container registry if:
one or more components of your stack need to pull or push container images.
How to deploy it
The ECR registry is automatically activated once you create an AWS account. However, you'll need to create a Repository
in order to push container images to it:
Make sure the correct region is selected on the top right.
Click on
Create repository
.
URI format
The AWS container registry URI should have the following format:
To figure out the URI for your registry:
Once you have both these values, fill in the values in this template
<ACCOUNT_ID>.dkr.ecr.<REGION>.amazonaws.com
to get your container registry URI.
Infrastructure Deployment
An AWS ECR Container Registry can be deployed directly from the ZenML CLI:
You can pass other configurations specific to the stack components as key-value arguments. If you don't provide a name, a random one is generated for you. For more information about how to work use the CLI for this, please refer to the dedicated documentation section.
How to use it
To use the AWS container registry, we need:
The ZenML
aws
integration installed. If you haven't done so, run
We can then register the container registry and use it in our active stack:
Authentication Methods
With the AWS CLI installed and set up with credentials, we'll need to log in to the container registry so Docker can pull and push images:
Last updated