#terragrunt - December 2019

terragruntArchived
3 messages

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

December 2019
FalseProphet
FalseProphetalmost 7 years ago
Hello -
I am hoping someone can help me understand how to configure backends and
make them available across a multi-account setup using terragrunt.

My understanding of using the S3 state buckets is that a bucket is
created in each account e.g. staging = test-staging-tfstate ,
shared-services = test-shared-services-tfstate. Is this correct?

If the there is a state bucket for each account, how do you handle
authentication cross-account for data lookups?

Specifically, I need the ability to use a data lookup for remote state from
(shared-services) while in the (stage) account. This is for grabbing data for a
peering connection.

From the vpc-app wrapper in staging
data "terraform_remote_state" "mgmt_vpc" {
  backend = "s3"
  config = {
    region = var.terraform_state_aws_region
    bucket = var.terraform_state_s3_bucket
    key    = "${var.aws_region}/mgmt/vpc/terraform.tfstate"
  }
}
Todd Lyons
Todd Lyonsalmost 7 years ago
Is there any way (cli or configuration) to change the interval that “Still creating…” to something other than every 10 seconds? I’m not finding anything with TheGoogle nor via help pages or docs. I’ll dig through the code next, but I suspect that the answer will be “no” if I get to that point.
Todd Lyons
Todd Lyonsalmost 7 years ago
Ugh, that’s a terraform output. I don’t know how I missed that. Sorry for bugging you.