Terraform module to create AWS ECR repository.
Minimal params:
module "my_registry" {
source = "github.com/jetbrains-infra/terraform-aws-ecr?ref=v0.2.2"
name = "blinchik"
tags = {
Owner = "Don John",
Project = "Alice"
Customer = "Umbrella Corp."
}
}
All options with default values:
module "my_registry" {
source = "github.com/jetbrains-infra/terraform-aws-ecr?ref=v0.2.2"
name = "blinchik"
scan = false
mutable = true
share_with_accounts = [] // list of account IDs
tags = {
Owner = "Don John",
Project = "Alice"
Customer = "Umbrella Corp."
}
}
ecr_host
- The hostname of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com)ecr_repo
- The name of the repository.ecr_repository_url
- The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName)ecr_repo_rw_policy
- IAM policy in JSON format that grant of rights to manage images.ecr_repo_ro_policy
- IAM policy in JSON format that grant of rights to fetch images.