Skip to content

How do I modify the for-production infrastructure-live example for a single-account setup? Do I need an accounts.hcl? #21

Discussion options

You must be logged in to vote

From a grunt

The accounts.hcl is actually a guard rail to ensure you don’t accidentally touch the wrong account. Since there is no way for terragrunt to know from the code if you are authenticated to the right/intended account, we need to tell it which account which folders should apply to.

That is, terragrunt uses this information to construct the aws provider blocks in a way that tells terraform to make sure when one applies to the dev account, they are actually authenticated to the dev account.

This is also used in the infra CI/CD pipeline in a similar manner, to ensure the CI server authenticates to the right account (since assume role requires knowing the ARN, which requires knowing …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gruntwork-support
Comment options

Answer selected by gruntwork-support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant