-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathterragrunt.hcl
More file actions
50 lines (42 loc) · 1.31 KB
/
terragrunt.hcl
File metadata and controls
50 lines (42 loc) · 1.31 KB
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
terraform {
extra_arguments "common_vars" {
commands = get_terraform_commands_that_need_vars()
env_vars = {
GITHUB_TOKEN = trimspace(run_cmd("--terragrunt-quiet", "secrethub", "read", "betajob/terraform-aws-modules/github/token"))
GITHUB_ORGANIZATION = "terraform-aws-modules"
}
}
extra_arguments "disable_input" {
commands = get_terraform_commands_that_need_input()
arguments = ["-input=false"]
}
}
remote_state {
backend = "s3"
disable_init = tobool(get_env("TERRAGRUNT_DISABLE_INIT", "false"))
generate = {
path = "_backend.tf"
if_exists = "overwrite"
}
config = {
encrypt = true
region = "eu-west-1"
key = format("%s/terraform.tfstate", path_relative_to_include())
bucket = format("terraform-aws-modules-meta-states-%s", get_aws_account_id())
dynamodb_table = format("terraform-aws-modules-meta-locks-%s", get_aws_account_id())
skip_metadata_api_check = true
skip_credentials_validation = true
}
}
generate "main_providers" {
path = "main_providers.tf"
if_exists = "overwrite"
contents = <<EOF
provider "github" {}
provider "githubfile" {
github_username = "betajobot"
github_email = "anton+betajobot@antonbabenko.com"
commit_message_prefix = "[ci skip] "
}
EOF
}