Skip to content

Commit

Permalink
docs: add example
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiFleKs committed Oct 21, 2019
1 parent ff531ce commit 1ab2ae7
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions examples/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
include {
path = "${find_in_parent_folders()}"
}

terraform {
source = "github.com/clusterfrak-dynamics/terraform-aws-ecr.git?ref=v1.0.0"
}

locals {
aws_region = basename(dirname(get_terragrunt_dir()))
env = "production"
project = "myproject"
custom_tags = yamldecode(file("${get_terragrunt_dir()}/${find_in_parent_folders("common_tags.yaml")}"))
}

inputs = {

env = local.env
project = local.project

aws = {
"region" = local.aws_region
}

custom_tags = merge(
{
Env = local.env
},
local.custom_tags
)

registries = [
"myproject/one",
"myproject/two",
"myproject/three"
]
}

0 comments on commit 1ab2ae7

Please sign in to comment.