#terragrunt (2019-06)

terragrunt

Terragrunt discussions

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

2019-06-08

loren avatar
Terraform 0.12 support by brikis98 · Pull Request #731 · gruntwork-io/terragrunt

This PR upgrades Terragrunt to work with Terraform 0.12. Key changes: We are migrating from having the Terragrunt configuration in terraform.tfvars to terragrunt.hcl. This is necessary because Te…

1

2019-06-10

loren avatar
gruntwork-io/terragrunt

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

1

2019-06-13

maarten avatar
maarten

Hi @loren Have you thought best practices yet for running pre-0.19 with post 0.19 ? Seperate tree structure for post 0.19, or having both .tfvars and .hcl in one structure.

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

Use direnv with envrc :-)

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

In a geodesic shell, of course

maarten avatar
maarten

Hi Erik! For the binaries i see that working, but not so much for the tfvars / .hcl implementqtion

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

Our strategy is that a given folder should only use one version of terraform. It doesn’t make sense to have 2 versions of terraform in the same project folder

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

I guess the problem with terragrunt is you have it operate across folders of different versions?

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

A project folder for us is a root module

maarten avatar
maarten

well with terragrunt you can have a tree model with tfvars inheritance more or less, provider, account and region specific information can be autofilled this way. But this does mean that the tree is being traversed and being searched for other specific tfvars. From 0.19 this information is not in tfvars anymore but in .hcl, so in case one wants to slowly move certain root modules in this structure to v0.19/tf 0.12 that is something to be taken care of.

1
loren avatar

I wanted to be able to update quickly to tf 0.12 but with backwards compatible module changes, then leisurely update modules to take advantage of new syntax. Unfortunately there are just way too many, very basic (IMO) backwards incompatible changes in tf 0.12

loren avatar

So now it’s likely to be quite a while before we update active root configs to tf 0.12 since we have to go all in to do it

loren avatar

Also means probably won’t be using terragrunt 0.19 until then, and when we do we will also begin using it across all configs in the project simultaneously

loren avatar

Sucks because I want to use tf 0.12 now, but the backwards incompatibility means we won’t be able to adopt it for quite some time

loren avatar

So I guess, to answer the actual question, no, I haven’t thought about how to use tg 0.19 and tg <0.19 in the same project since at the moment I’m expecting eventually we’ll update everything at once

maarten avatar
maarten

Thanks, sounds like you’re stuck with the same problem, and probably means we need to start with 0.12

1

2019-06-14

2019-06-26

Nehal avatar

HI all, just . quick one, I need some help installing terragrunt v18 on mac os, I’ve managed to do it via brew but that installs a dependancy of terraform v12 (i need v11). I went to releases, but not sure how to install Darwin_64 on mac? Any ideas, thanks

antonbabenko avatar
antonbabenko

@Nehal You can remove terraform after it has been installed by terragrunt, or use tfenv to manage terraform installation.

1
Nehal avatar

thanks..didn’t know about tfenv, look into it

antonbabenko avatar
antonbabenko

https://github.com/tfutils/tfenv - this is the one I am talking about

tfutils/tfenv

Terraform version manager. Contribute to tfutils/tfenv development by creating an account on GitHub.

4
    keyboard_arrow_up