resource "aws_ecr_repository" "example" {
count = "${var.repos_count}"
name = "${element(var.repos,count.index)}"
}
variable "repos_count" {
default = 3
}
variable "repos" {
default = ["ex1","ex2","ex3"]
}
resource "aws_ecr_repository" "example" {
count = "${var.repos_count}"
name = "${element(var.repos,count.index)}"
}
variable "repos_count" {
default = 3
}
variable "repos" {
default = ["ex1","ex2","ex3"]
}