Skip to content

fix: Replace hardcoded "aws" parition with data lookup #47

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

Merged
merged 2 commits into from
Mar 3, 2023

Conversation

pcram-techcyte
Copy link
Contributor

Description

Replaced hardcoded "aws" partition references in iam ARNs with the current partition (aws-cn, etc)

Motivation and Context

These changes are needed so the terraform apply will work in China. The current code results in Error: putting IAM role policy service-policy: MalformedPolicyDocument: Partition "aws" is not valid for resource "arn:aws:dynamodb:cn-northwest-1...

Breaking Changes

None

How Has This Been Tested?

I tested this by re-running my project that uses this module against China and it succeeded. I also re-ran it against a US based region/partition and verified it shows no changes to what we already deployed. I didn't update any of the examples since this is all behind-the-scenes and there's no effect to the user (other than it should now work in China).

@pcram-techcyte pcram-techcyte changed the title Replace hardcoded "aws" parition with data lookup fix: replace hardcoded "aws" parition with data lookup Mar 1, 2023
@pcram-techcyte pcram-techcyte changed the title fix: replace hardcoded "aws" parition with data lookup fix: Replace hardcoded "aws" parition with data lookup Mar 1, 2023
@antonbabenko antonbabenko merged commit d6c8501 into terraform-aws-modules:master Mar 3, 2023
antonbabenko pushed a commit that referenced this pull request Mar 3, 2023
### [1.6.2](v1.6.1...v1.6.2) (2023-03-03)

### Bug Fixes

* Replace hardcoded "aws" parition with data lookup ([#47](#47)) ([d6c8501](d6c8501))
@antonbabenko
Copy link
Member

This PR is included in version 1.6.2 🎉

@github-actions
Copy link

github-actions bot commented Apr 4, 2023

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants