ecr

clowdhaus/ecr/aws

Terraform Module HCL AWS

Terraform module to create AWS ECR resources πŸ‡ΊπŸ‡¦

Install
module "ecr" {
source = "clowdhaus/ecr/aws"
version = "2.4.0"
}
plain text: /constructs/tfmod-clowdhaus-ecr-aws/install.txt
⭐ Source on GitHub πŸ“¦ Registry page
README

Amazon ECR Terraform module Terraform module which creates Amazon ECR resources. Usage See examples directory for working examples to reference: Private Repository ``hcl module "ecr" { source = "terraform-aws-modules/ecr/aws" repository_name = "private-example" repository_read_write_access_arns = ["arn:aws:iam::012345678901:role/terraform"] repository_lifecycle_policy = jsonencode({ rules = [ { rulePriority = 1, description = "Keep last 30 images", selection = { tagStatus = "tagged", tagPrefixList = ["v"], countType = "imageCountMoreThan", countNumber = 30 }, action = { type = "expire" } } ] }) tags = { Terraform = "true" Environment = "dev" } } ` Public Repository `hcl module "public_ecr" { source = "terraform-aws-modules/ecr/aws" repository_name = "public-example" repository_type = "publ

Inputs (28)
NameTypeDescriptionDefault
repository_policystringThe JSON policy to apply to the repository. If not specified, uses the default pnull
repository_force_deleteboolIf `true`, will delete the repository even if it contains images. Defaults to `fnull
repository_read_access_arnslist(string)The ARNs of the IAM users/roles that have read access to the repository[]
repository_lifecycle_policystringThe policy document. This is a JSON formatted string. See more details about [Po""
create_registry_policyboolDetermines whether a registry policy will be createdfalse
registry_policystringThe policy document. This is a JSON formatted stringnull
registry_pull_through_cache_rulesmap(map(string))List of pull through cache rules to create{}
repository_typestringThe type of repository to create. Either `public` or `private`"private"
repository_namestringThe name of the repository""
repository_encryption_typestringThe encryption type for the repository. Must be one of: `KMS` or `AES256`. Defaunull
attach_repository_policyboolDetermines whether a repository policy will be attached to the repositorytrue
create_repository_policyboolDetermines whether a repository policy will be createdtrue
repository_lambda_read_access_arnslist(string)The ARNs of the Lambda service roles that have read access to the repository[]
create_lifecycle_policyboolDetermines whether a lifecycle policy will be createdtrue
registry_scan_typestringthe scanning type to set for the registry. Can be either `ENHANCED` or `BASIC`"ENHANCED"
manage_registry_scanning_configurationboolDetermines whether the registry scanning configuration will be managedfalse
registry_scan_rulesanyOne or multiple blocks specifying scanning rules to determine which repository f[]
create_registry_replication_configurationboolDetermines whether a registry replication configuration will be createdfalse
registry_replication_rulesanyThe replication rules for a replication configuration. A maximum of 10 are allow[]
createboolDetermines whether resources will be created (affects all resources)true
Outputs (4)
repository_name β€” Name of the repository
repository_arn β€” Full ARN of the repository
repository_registry_id β€” The registry ID where the repository was created
repository_url β€” The URL of the repository
Resources (9)
aws_ecr_lifecycle_policyaws_ecr_pull_through_cache_ruleaws_ecr_registry_policyaws_ecr_registry_scanning_configurationaws_ecr_replication_configurationaws_ecr_repositoryaws_ecr_repository_policyaws_ecrpublic_repositoryaws_ecrpublic_repository_policy
Details
FrameworkTerraform Module
LanguageHCL
Version2.4.0
Cloud AWS
β˜… Stars70
Forks127
Total downloads4.7k
Inputs28
Outputs4
Resources9
Examples2
Submodules1
LicenseApache-2.0
Namespaceclowdhaus
Updated