This module creates following resources.
aws_ecr_repository
aws_ecr_repository_policy
(optional)
aws_ecr_lifecycle_policy
(optional)
Name |
Source |
Version |
resource_group |
tedilabs/misc/aws//modules/resource-group |
~> 0.10.0 |
Name |
Description |
Type |
Default |
Required |
name |
(Required) Desired name for the repository. |
string |
n/a |
yes |
encryption_kms_key |
(Optional) The ARN of the KMS key to use when encryption_type is KMS . If not specified, uses the default AWS managed key for ECR. |
string |
null |
no |
encryption_type |
(Optional) The encryption type to use for the repository. Valid values are AES256 or KMS . |
string |
"AES256" |
no |
force_delete |
(Optional) If true , will delete the repository even if it contains images. Defaults to false . |
bool |
false |
no |
image_scan_on_push_enabled |
(Optional, Deprecated) Indicates whether images are scanned after being pushed to the repository or not scanned. |
bool |
false |
no |
image_tag_immutable_enabled |
(Optional) Enable tag immutability to prevent image tags from being overwritten by subsequent image pushes using the same tag. Disable tag immutability to allow image tags to be overwritten. |
bool |
false |
no |
lifecycle_rules |
(Optional) A list of ECR Repository Lifecycle rules. priority must be unique and do not need to be sequential across rules. descriptoin is optional. type is one of tagged , untagged , or any . tag_prefixes is required if you specified tagged type. Specify one of expiration_days or expiration_count |
any |
[] |
no |
module_tags_enabled |
(Optional) Whether to create AWS Resource Tags for the module informations. |
bool |
true |
no |
repository_policy |
(Optional) The policy document for ECR Repository. This is a JSON formatted string. |
string |
"" |
no |
resource_group_description |
(Optional) The description of Resource Group. |
string |
"Managed by Terraform." |
no |
resource_group_enabled |
(Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. |
bool |
true |
no |
resource_group_name |
(Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws . |
string |
"" |
no |
tags |
(Optional) A map of tags to add to all resources. |
map(string) |
{} |
no |
Name |
Description |
arn |
The ARN of the repository. |
encryption |
The configuration for the encryption of repository. |
image_scan_on_push_enabled |
Whether to scan image on push. |
image_tag_immutable_enabled |
Whether to enable tag immutability to prevent image tags from being overwritten. |
name |
The name of the repository. |
registry_id |
The registry ID where the repository was created. |
url |
The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName). |