Skip to content

This terraform module creates an Amazon Web Services (AWS) Elastic Container Registry (ECR) repository.

License

Notifications You must be signed in to change notification settings

DNXLabs/terraform-aws-ecr

Repository files navigation

terraform-aws-ecr

Lint Status LICENSE

This terraform module creates an Amazon Web Services (AWS) Elastic Container Registry (ECR) repository.

The following resources will be created:

  • ECR Repository
    • Set the Amazon ECR image scanning on push = true
      • Amazon ECR image scanning helps in identifying software vulnerabilities in your container images.
  • ECR policies
  • ECR lifecyle

Requirements

Name Version
terraform >= 0.12.31

Providers

Name Version
aws n/a

Inputs

Name Description Type Default Required
image_tag_mutability The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE. Defaults to MUTABLE. string "MUTABLE" no
kms_key_arn KMS Key ARN to use a CMK instead of default key string "" no
lifecycle_policy JSON formatted string ECR repository lifecycle policy. string "" no
name Name for ECR repository any n/a yes
scan_on_push Configuration block that defines image scanning configuration for the repository. bool true no
tags Map of tags that will be added to created resources. By default resources will be tagged with name and environment. map(string) {} no
trust_accounts Accounts to trust and allow ECR fetch list(string) n/a yes

Outputs

Name Description
ecr_arn n/a
ecr_name n/a
ecr_url n/a

Authors

Module managed by DNX Solutions.

License

Apache 2 Licensed. See LICENSE for full details.

About

This terraform module creates an Amazon Web Services (AWS) Elastic Container Registry (ECR) repository.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages