ecr-repo
dod-iac/ecr-repo/aws
An AWS ECR repository
Usage Creates an AWS ECR repository. ``hcl module "ecr_repo" { source = "dod-iac/ecr-repo/aws" name = format("app-%s-%s", var.application, var.environment) tags = { Application = var.application Automation = "Terraform" } } ` Creates an AWS ECR repository with container images encrypted using a customer-managed KMS key. `hcl module "ecr_kms_key" { source = "dod-iac/ecr-kms-key/aws" name = format("alias/app-%s-ecr", var.application, var.environment) tags = { Application = var.application Automation = "Terraform" } } module "ecr_repo" { source = "dod-iac/ecr-repo/aws" encryption_type = "KMS" kms_key_arn = module.ecr_kms_key.aws_kms_key_arn name = format("app-%s", var.application) tags = { Application = var.application Automation = "Terraform" } } ` Use the optional lifecycle_policy variable
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | Name of the repository. | required |
| kms_key_arn | string | The ARN of the KMS key to used to encrypt the container images. | "" |
| lifecycle_policy | string | Optional lifecycle policy for the ECR repository. | "" |
| repository_policy | string | Optional repository policy for the ECR repository. | "" |
| scan_on_push | bool | Indicates whether images are scanned after being pushed to the repository (true) | true |
| tags | map(string) | A mapping of tags to assign to the ECR repo. | {} |
| encryption_type | string | The encryption type to use for the repository. Valid values are AES256 or KMS. | "AES256" |
| immutable | bool | If true, image tags are immutable. | false |
arn — The Amazon Resource Name (ARN) of the AWS ECR repo.repository_url — The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName).Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,