-
Notifications
You must be signed in to change notification settings - Fork 0
/
terragrunt.hcl
61 lines (50 loc) · 1.4 KB
/
terragrunt.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# don't include in run-all
skip = true
# Terragrunt config relevant for all terragrunt files
locals {
# helpers
root_dir = get_parent_terragrunt_dir()
project_dir = "${get_terragrunt_dir()}/../../"
# remote module conf
# module_remote_url = "git::ssh://[email protected]/ZeitOnline/terraform-modules.git"
# module_remote_ref = "main"
# tf_modules = "${get_repo_root()}/terraform-modules"
}
remote_state {
backend = "s3"
generate = {
path = "_backend.tf"
if_exists = "overwrite"
}
config = {
bucket = "digger-tests-bucket"
key = "${path_relative_to_include()}/terraform.tfstate"
region = "us-east-1"
encrypt = true
dynamodb_table = "dynamo-lock-table"
}
}
# generate "providers" {
# path = "_providers_common.tf"
# if_exists = "overwrite"
# contents = file("${local.root_dir}/_templates/providers_common.tf")
# }
# generate "context" {
# path = "_context.tf"
# if_exists = "overwrite"
# contents = file("${local.root_dir}/_templates/context.tf")
# }
# generate "inputs" {
# path = "_inputs.tf"
# if_exists = "overwrite"
# contents = file("${local.root_dir}/_templates/inputs.tf")
# }
// generate "metadata" {
// path = "_project-metadata.tf"
// if_exists = "overwrite"
// contents = <<EOF
// locals {
// project_metadata = jsondecode(${jsonencode(file("${local.project_dir}/project-metadata.json"))})
// }
// EOF
// }