This terraform module creates an Amazon Web Services (AWS) Elastic Container Registry (ECR) repository.
The following resources will be created:
- ECR Repository
- Set the Amazon ECR image scanning on push = true
- Amazon ECR image scanning helps in identifying software vulnerabilities in your container images.
- Set the Amazon ECR image scanning on push = true
- ECR policies
- ECR lifecyle
Name | Version |
---|---|
terraform | >= 0.12.31 |
Name | Version |
---|---|
aws | n/a |
Name | Description | Type | Default | Required |
---|---|---|---|---|
encryption_type | Encryption type, KMS or AES256. When kms_key_arn is passed, encryption_type is always KMS | string |
"KMS" |
no |
image_tag_mutability | The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE. Defaults to MUTABLE. | string |
"MUTABLE" |
no |
kms_key_arn | KMS Key ARN to use a CMK instead of default key | string |
"" |
no |
lifecycle_policy | JSON formatted string ECR repository lifecycle policy. | string |
"" |
no |
name | Name for ECR repository | any |
n/a | yes |
scan_on_push | Configuration block that defines image scanning configuration for the repository. | bool |
true |
no |
tags | Map of tags that will be added to created resources. By default resources will be tagged with name and environment. | map(string) |
{} |
no |
trust_accounts | Accounts to trust and allow ECR fetch | list(string) |
n/a | yes |
Name | Description |
---|---|
ecr_arn | n/a |
ecr_name | n/a |
ecr_url | n/a |
Module managed by DNX Solutions.
Apache 2 Licensed. See LICENSE for full details.