Skip to content

idjemaoune/terraform-aws-ecr

Repository files navigation

AWS ECR Terraform Module

This Terraform module deploys an AWS ECR manage cross account access and lifecycle policies.

Requirements

Name Version
aws >= 4.21.0

Providers

Name Version
aws >= 4.21.0

Modules

No modules.

Resources

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

Inputs

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

Outputs

Name Description
name The name of the repository.
registry_id The registry ID of the repository
repository_url The URL of the repository

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages