AWS ECR
Amazon Elastic Container Registry (Amazon ECR) is a fully managed container registry offering high-performance hosting, so you can reliably deploy application images and artifacts anywhere.
This module creates AWS ECR with these possibilities :
Enable or disable mutability
Enable or disable the scan on push
Enable or disable the force delete
Choose the encryption type
Set ECR policy on only pull accounts and/or push and pull accounts
Set a lifecycle policy
This module must be used with these constraints:
Use the same availability zone to all the repositories
Give the image name and the tag of the all repositories
Requirements
Name |
Version |
|---|---|
>= 1.0 |
|
>= 5.61 |
|
>= 0.1.1 |
|
>= 1.1.1 |
Providers
Name |
Version |
|---|---|
>= 5.61 |
|
>= 0.1.1 |
|
>= 1.1.1 |
Modules
No modules.
Resources
Name |
Type |
|---|---|
resource |
|
resource |
|
resource |
|
generic_local_cmd.logout_public_ecr_login_private |
resource |
resource |
|
data source |
|
data source |
|
data source |
|
data source |
|
data source |
|
data source |
|
data source |
Inputs
Name |
Description |
Type |
Default |
Required |
|---|---|---|---|---|
AWS Profile used to login and push container images on ECR |
|
n/a |
yes |
|
The encryption type to use for the repository. |
|
|
no |
|
If true, will delete the repository even if it contains images. |
|
|
no |
|
KMS to encrypt ECR repositories |
|
|
no |
|
Manages an ECR repository lifecycle policy |
|
|
no |
|
The tag mutability setting for the repository |
|
|
no |
|
List of accounts having pull permission |
|
|
no |
|
List of accounts having push and pull permissions |
|
|
no |
|
Map of ECR repositories to create. Each repository is an object of “image” and “tag” parameters |
map(object({ |
|
no |
|
Indicates whether images are scanned after being pushed to the repository or not scanned |
|
|
no |
|
Tags for resource |
|
|
no |
Outputs
Name |
Description |
|---|---|
ARN of KMS used for ECR |
|
Map of ECR repositories created on AWS |