AWS ECR Module
AWS ECR Module which creates
KMS Key encryption
ECR lifecycle
ECR policy
Usage
Requirements
Providers
Name
Version
aws
~> 4.31.0
Modules
No modules.
Resources
Inputs
Name
Description
Type
Default
Required
encryption_type
The encryption type to use for the repository. Valid values are AES256
or KMS
string
"AES256"
no
image_names
List of Docker local image names, used as repository names for AWS ECR
list(string)
[]
no
image_tag_mutability
Whether images are allowed to overwrite existing tags.
string
"MUTABLE"
no
kms_key
The ARN of the KMS key to use when encryption_type is KMS
. If not specified when encryption_type is KMS
, uses a new KMS key. Otherwise, uses the default AWS managed key for ECR.
string
null
no
max_tagged_image_count
The maximum number of tagged images that you want to retain in repository.
number
30
no
max_untagged_image_count
The maximum number of untagged images that you want to retain in repository.
number
1
no
only_pull_accounts
AWS accounts which pull only.
list(string)
[]
no
protected_tags
Name of image tags prefixes that should not be destroyed.
list(string)
[ "latest" ]
no
push_and_pull_accounts
AWS accounts which push and pull.
list(string)
[]
no
scan_on_push
Whether images should automatically be scanned on push or not.
bool
false
no
tags
The tags for the resources
map(any)
{}
no
Outputs