This Terraform module deploys an AWS ECR manage cross account access and lifecycle policies.
Name | Version |
---|---|
aws | >= 4.21.0 |
Name | Version |
---|---|
aws | >= 4.21.0 |
No modules.
Name | Type |
---|---|
aws_ecr_lifecycle_policy.lifecycle_policy | resource |
aws_ecr_repository.repository | resource |
aws_ecr_repository_policy.repository_policy | resource |
aws_iam_policy_document.policy | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
encryption_type | The encryption type to use for the repository. Valid values are AES256 or KMS. Defaults to AES256 | string |
"AES256" |
no |
global_tags | (Optional) A mapping of tags to assign to the resource. | map(string) |
{} |
no |
immutable | (Optional) You can configure a repository to be immutable to prevent image tags from being overwritten. Defaults to false | bool |
true |
no |
lifecycle_policy_rules | (Optional) List of lifecycle policy rules. | any |
[] |
no |
name | (Required) Name of the repository. | string |
n/a | yes |
pull_identities | (Optional) List of AWS identity identifiers to grant cross account pull access to | list(string) |
[] |
no |
push_identities | (Optional) List of AWS identity identifiers to grant cross account pull and push access to | list(string) |
[] |
no |
repository_policy_statements | (Optional) A list of repository policy statements. | any |
[] |
no |
scan_on_push | (Optional) Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false). Defaults to true | bool |
true |
no |
Name | Description |
---|---|
name | The name of the repository. |
registry_id | The registry ID of the repository |
repository_url | The URL of the repository |