Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update aws-provider-patch to support nested attributes #1391

Merged
merged 1 commit into from
Oct 15, 2020

Conversation

brikis98
Copy link
Member

I have come across yet another import bug with Terraform. The original one prompted us to add the aws-provider-patch command. The new one, which is the motivation for this PR, requires that the aws-provider-patch command can override not only top-level attributes in the provider block, but also attributes nested within blocks within the provider block, such as a role_arn within an assume_role block. This PR allows you to specify these nested attributes using a "dot" notation: e.g., --terragrunt-override-attr assume_role.role_arn="".

I have come across yet another `import` bug with Terraform. The [original one](hashicorp/terraform#13018) prompted us to add the `aws-provider-patch` command. The [new one](hashicorp/terraform#26211), which is the motivation for this PR, requires that the `aws-provider-patch` command can override not only top-level attributes in the `provider` block, but also attributes nested within blocks within the `provider` block, such as a `role_arn` within an `assume_role` block. This PR allows you to specify these nested attributes using a "dot" notation: e.g., `--terragrunt-override-attr assume_role.role_arn=""`.
Copy link
Contributor

@ina-stoyanova ina-stoyanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good. I like the explanations - make it very easy to understand what's going on

@brikis98
Copy link
Member Author

Thanks for the review! Merging now.

@brikis98 brikis98 merged commit b745cc6 into master Oct 15, 2020
@brikis98 brikis98 deleted the aws-provider-patch-nested branch October 15, 2020 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants