Skip to content

arovira/tfm-aws-ecr-repository

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS ECR Terraform module

Terraform module which creates AWS ECR resources.

Usage

module "ecr_repo" {
  source   = "git::[email protected]:arovira/tfm-aws-ecr-repository.git"
  ecr_name = "example"
}

Examples

Examples codified under the examples are intended to give users references for how to use the module(s) as well as testing/validating changes to the source code of the module. If contributing to the project, please be sure to make any appropriate updates to the relevant examples to allow maintainers to test your changes and to keep the examples up to date for users. Thank you!

Requirements

Name Version
aws >= 4.20.0

Providers

Name Version
aws >= 4.20.0

Modules

No modules.

Resources

Name Type
aws_ecr_lifecycle_policy.ecr_repo resource
aws_ecr_repository.ecr_repo resource
aws_ecr_repository_policy.ecr_repo resource

Inputs

Name Description Type Default Required
aws_ecr_encryption_type Encryption type for ECR string "KMS" no
aws_ecr_lifecycle_policy_rules List of ECR Lifecycle rules to be created list(any)
[
{
"action": {
"type": "expire"
},
"description": "Expire images older than 30 days",
"rulePriority": 1,
"selection": {
"countNumber": 30,
"countType": "sinceImagePushed",
"countUnit": "days",
"tagStatus": "untagged"
}
}
]
no
aws_kms_encryption_key Encryption kms key for ECR. Leave blank for ECR managed key. string "" no
ecr_image_tag_mutability The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE. Defaults to MUTABLE. string "MUTABLE" no
ecr_name Name of the ECR repository to be created string n/a yes
enable_access_from_external_account If True, enable access from other aws accounts bool false no
external_account_access Only used if enable_access_from_external_account is true. Accounts that should have access to this repo. list(string) [] no

Outputs

Name Description
repository_url n/a

About

Terraform module to create aws ecr repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages