#terragrunt - November 2018

terragruntArchived
25 messages

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

November 2018
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
@Gonzalo Peci has joined the channel
stephen
stephenalmost 8 years ago
@stephen has joined the channel
Vi
Vialmost 8 years ago
@Vi has joined the channel
Vi
Vialmost 8 years ago
Hi,
I was working with terragrunt and observed that terragrunt does not pick up the changes automatically for modules. Is there any way to sort this out?
loren
lorenalmost 8 years ago
pass --terragrunt-source-update
loren
lorenalmost 8 years ago
@Vi ^^^
loren
lorenalmost 8 years ago
terragrunt uses a hash of the source url to determine whether the source has changed. if you are using tagged/versioned modules, that works great... you update the source ref, and terragrunt will detect the changed hash and automatically pull down the new version
loren
lorenalmost 8 years ago
if you are not using a version ref in your source, then you can use --terragrunt-source-update to force terragrunt to pull down the source
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
has anyone played around with the terraform 0.12 rc with terragrunt?
Gonzalo Peci
Gonzalo Pecialmost 8 years ago
What is the usecase for terragrunt with workspaces module etc?
antonbabenko
antonbabenkoalmost 8 years ago
@Erik Osterman (Cloud Posse) not yet, but should do it after AWS re:invent.
Anmol
Anmolalmost 8 years ago
@Anmol has joined the channel
antonbabenko
antonbabenkoalmost 8 years ago(edited)
Hi guys! If you want to check how I do dynamic parameters in static terraform.tfvars with Terragrunt and tell me if you know better solution, you should read my blog post (and try it) - https://medium.com/@anton.babenko/modules-tf-convert-visual-aws-diagram-into-terraform-configurations-e61fb0574b10
Bogdan
Bogdanalmost 8 years ago
@Bogdan has joined the channel
Vi
Vialmost 8 years ago(edited)
Hello everyone,
I am trying to run terragrunt plan using circleci and I am getting the following error
 [terragrunt] [/root/project/cloudfront_frontend] 2018/11/26 03:21:58 The non-interactive flag is set to true, so assuming 'yes' for all prompts
[terragrunt] [/root/project/cloudfront_frontend] 2018/11/26 03:21:58 Creating S3 bucket cb-terraform-infra-state-sit
[terragrunt] 2018/11/26 03:21:59 AccessDenied: Access Denied
	status code: 403, request id: 35E32BD7CF45BED5, host id: f3c85r+xX5QKBmRdlhW8JCQyj+AqUtKGZWwLvbuo/YkjErGKUuVJ6kAs0NIjooDC83uXs1JkjXc=
[terragrunt] 2018/11/26 03:21:59 Unable to determine underlying exit code, so Terragrunt will exit with error code 1
Exited with code 1

I have the credentials in place ~/.aws/credentials . It works perfectly in local. Not sure how to fix it 😞
Vi
Vialmost 8 years ago
I am using the following docker image antonbabenko/terracing:v0.0.6
Vi
Vialmost 8 years ago
It looks like permission issue but I have given fullAdminAccess to the user.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
hrm… so shouldn’t need to write credentials to ~/.aws/credentials
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
using the standard AWS envs should be sufficient
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
in fact, i’d try to get it working with ENVs locally (for testing)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 8 years ago
then once you find the working combination, that’s what you’ll set in circle
joshmyers
joshmyersalmost 8 years ago
@joshmyers has joined the channel
jerry
jerryalmost 8 years ago
@jerry has joined the channel
erik
erikalmost 8 years ago
set the channel topic: :terragrunt: