Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 13 additions & 16 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ locals {

module "ecr" {
source = "cloudposse/ecr/aws"
version = "0.36.0"
version = "0.41.0"

protected_tags = var.protected_tags
enable_lifecycle_policy = var.enable_lifecycle_policy
Expand All @@ -36,6 +36,7 @@ module "ecr" {
principals_lambda = var.principals_lambda
scan_images_on_push = var.scan_images_on_push
use_fullname = false
replication_configurations = var.replication_configurations

context = module.this.context
}
Expand Down
17 changes: 17 additions & 0 deletions src/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,20 @@ variable "pull_through_cache_rules" {
description = "Map of pull through cache rules to configure"
default = {}
}

variable "replication_configurations" {
type = list(object({
rules = list(object({
destinations = list(object({
region = string
registry_id = string
}))
repository_filters = list(object({
filter = string
filter_type = string
}))
}))
}))
description = "Replication configuration for a registry. See [Replication Configuration](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_replication_configuration#replication-configuration)."
default = []
}
Loading