#terragrunt (2019-07)
Terragrunt discussions
Archive: https://archive.sweetops.com/terragrunt/
2019-07-09
Is anyone having issue with terraform 0.12 and terragrunt 0.19.8 not picking up credentials parameter when using gcs as backend ?
terragrunt] [/Users/aarat/git/terraform/variables/staging] 2019/07/09 21:36:04 Initializing remote state for the gcs backend
[terragrunt] 2019/07/09 21:36:04 dialing: google: could not find default credentials. See <https://developers.google.com/accounts/docs/application-default-credentials> for more information.
I am seeing this and unable to initialize
there have been a handful of changes to GCS backend in recent versions, maybe try 0.19.5? if that works, open an issue describing your config and use case
A working config on 0.19.5 now fails on 0.19.6 (likely due to GCP changes) I have this as a parent remote_state { backend = "gcs" config = { bucket = "project-factory-592341-tfstate&…
2019-07-29
Hey Folks, Trying to find some Terraform Modules related to AWS - app stream service ( for creating fleets and stacks) any help appreciated
2019-07-30
Hey all - has anyone figured out a way to use a before_hook to set environment variables that terragrunt can use?
I’m using direnv for directory based variables which works fantastic for single plan/applies, but it won’t work with an apply-all
It’s possible if you call direnv exec on the command in each directory
But as @joshmyers hinted, it’s a bit dangerous
That doesn’t seem to work with a before hook
I have .envrc files in the child directories with overrides and region/module specific config
can you share what you tried doing?
So I have a directory structure like so
account-id
– nonprod
—- test
—— ap-southeast-2
——– app_name
———- .envrc
———- terragrunt.hcl
——– .envrc
—- .envrc
—- terragrunt.hcl
Each child directory can have an .envrc file that loads environment variables specific to it or it’s child directories (eg. region specific variables for a region folder and it’s children)
I tried using a before_hook to run a direnv reload - but that won’t work as it spawns a new child process
I can’t think of any way to get it to set environment variables before a terragrunt execution - so I thought about writing variables to a tfars. But this is going to block that idea: https://github.com/hashicorp/terraform/issues/19424
Terraform Version Terraform v0.12.0-alpha2 + provider.google v1.19.1-4-gf3de5334 + provider.null v1.0.0-5-gf54ff98 Expected Behavior Terraform v0.11.10 and earlier allowed assignments to occur in t…
are you using make
too?
Not for any heavy lifting - just to run some basic scripts (eg. make new account creates a new terragrunt folder structure based on a template)
Isn’t apply all a bit YOLO, considering you can’t plan-all and have it correctly reflect dependency changes as the apply on the former hasn’t run yet…?
Only looking to do it for an initial spin up
@me1249 if you figure this out, I’m interested in how you do it.
Unfortunately not