For usage see how the module is used in the using tests in test_data/test_module
.
module "foo_ecr" {
source = "infrahouse/ecr/aws"
version = "0.3.0"
repo_name = "test_repo"
environment = "development"
service_name = "foo"
expire_days_tagged = 365
tag_prefix_list = ["v"]
expire_count_untagged = 5
}
Name | Version |
---|---|
terraform | ~> 1.5 |
aws | ~> 5.11 |
Name | Version |
---|---|
aws | ~> 5.11 |
No modules.
Name | Type |
---|---|
aws_ecr_lifecycle_policy.repo | resource |
aws_ecr_repository.repo | resource |
aws_ecr_lifecycle_policy_document.repo | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
environment | Name of environment. | string |
n/a | yes |
expire_count_tagged | Keep no more tagged images that this. | number |
null |
no |
expire_count_untagged | Keep no more tagged images that this. You can only specify expire_days_untagged or expire_count_untagged . |
number |
null |
no |
expire_days_tagged | The amount of days after which a tagged image is deleted from the repository. | number |
null |
no |
expire_days_untagged | The amount of days after which an untagged image is deleted from the repository. You can only specify expire_days_untagged or expire_count_untagged . |
number |
null |
no |
repo_name | Name of the repository. | string |
n/a | yes |
service_name | Service name. | string |
n/a | yes |
tag_pattern_list | If the lifecycle expires tagged images, specify list of tag patterns. | list(string) |
null |
no |
tag_prefix_list | If the lifecycle expires tagged images, specify list of tag prefixes. | list(string) |
null |
no |
Name | Description |
---|---|
repository_arn | ECR repository ARN. |