#terragrunt (2020-02)

terragrunt

Terragrunt discussions

Archive: https://archive.sweetops.com/terragrunt/

2020-02-21

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

@scorebot help keep tabs!

scorebot avatar
scorebot
05:50:44 PM

@scorebot has joined the channel

scorebot avatar
scorebot
05:50:45 PM

Thanks for adding me emojis used in this channel are now worth points.

scorebot avatar
scorebot
05:50:46 PM

Wondering what I can do? try @scorebot help

2020-02-25

joshmyers avatar
joshmyers

Anyone know why https://github.com/gruntwork-io/terragrunt/blob/master/configstack/stack.go#L77 is auto setting those args if using xxx-all rather than letting you set those via extra_args or whatever. They don’t get deduped and end up breaking extra_args if using plan output…

gruntwork-io/terragrunt

Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules. - gruntwork-io/terragrunt

joshmyers avatar
joshmyers

e.g. it can end up running something like terraform apply -lock-timeout=30m tfplan -input=false -auto-approve -no-color which isn’t valid.

gruntwork-io/terragrunt

Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules. - gruntwork-io/terragrunt

loren avatar

blame points to this issue, with the linked pr, https://github.com/gruntwork-io/terragrunt/issues/386

apply-all does not set auto-approve parameter · Issue #386 · gruntwork-io/terragrunt

As of Terraform v0.11, the default behaviour for terraform apply is to show the plan and wait for approval. When using apply-all this results in the script waiting for input for every module that y…

joshmyers avatar
joshmyers

Yeah, I’ve opened a PR

joshmyers avatar
joshmyers

that has royally fucked with my plan.

joey avatar

wow, a terragrunt room. amazing.

1
Andrea avatar

I just found this room and thought the same thing!

joey avatar
joey
06:11:08 PM
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

haha welcome

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Also, we have archives available here: http://archive.sweetops.com/terragrunt/

1
joey avatar

if anyone has pointers on why terragrunt would not be writing outputs when i’m using a module indirectly, that’d be totally rad. https://community.gruntwork.io/t/terragrunt-not-writing-outputs/410 .. https://community.gruntwork.io/t/examples-of-3-tier-module-structure/408 .. i’m sure i’m doing some silly bonehead mistake. whereas i need to go test my helmfile question more, this one was less clear to me.

loren avatar

it’s really just a terraform thing. you have a root module (what you are calling a “unit”) calling a another module. terraform requires that the root module must declare its own outputs. outputs from nested modules are not automatically propagated in the root module’s outputs.

2
loren avatar

try this in your unit to output everything from the nested vpc module… you can scope it more and create multiple outputs if you don’t need everything

output "vpc" {
  value = module.vpc
}
1
joey avatar

ahhhh haaaa

joey avatar

ammmmazing. thank you so much.

2020-02-29

    keyboard_arrow_up