Skip to content

Commit

Permalink
Merge pull request #21 from opszero/abhiyerra-patch-1
Browse files Browse the repository at this point in the history
Create main.tf
  • Loading branch information
abhiyerra authored Mar 21, 2024
2 parents 76b8e10 + 65af225 commit a89ae26
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions environments/common/artifacts/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
provider "aws" {
profile = "<profile>"
region = "us-west-2"
}

# terraform {
# backend "s3" {
# bucket = "opszero-<profile>-terraform-tfstate"
# region = "us-east-1"
# profile = "<profile>"
# encrypt = "true"

# key = "artifacts"
# }
# }

locals {
repo_names = [
"reponame",
]
}

module "ecr" {
for_each = toset(local.repo_names)
source = "github.com/opszero/terraform-aws-ecr"
name = each.key
}

0 comments on commit a89ae26

Please sign in to comment.