If my root terraform.tfvars file looks like this
terragrunt = {
remote_state {
backend = "s3"
config {
bucket = "dev-terraform"
profile = "my-dev"
key = "${path_relative_to_include()}/terraform.tfstate"
region = "us-east-1"
encrypt = true
dynamodb_table = "terraform-lock"
}
}
...
}
And in a child terraform.tfvars file I wanted to change some config. ie: (the s3 bucket/profile), is there a way to make this happen w/out rewriting the entire config section?
-terraform.tfvars
|
|_ account-dev
|_ account-prod
|_ vpc
|_ terraform.tfvars
This would be the account-prod/vpc/terraform.tfvars
file
terragrunt = {
remote_state {
backend = "s3"
config {
bucket = "prod-terraform"
profile = "default"
}
}
terraform {
source = "...uri to modules..."
}
include {
path = "${find_in_parent_folders()}"
}
}