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

Adding GovCloud, CN, and ADC support for global resources using the resourcetaggingapi for augments. #9475

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

bdljohnson
Copy link

Closes #7610

When running against GovCloud, CN, and ADC regions the universal_augment function for using the resourcetagging api fails due to mismatched partitions. This is due to global resources always being forced into us-east-1, instead of the correct region for the local partition, which in the case of GovCloud is us-gov-west-1.

@bdljohnson bdljohnson requested a review from kapilt as a code owner May 1, 2024 14:53
Copy link

linux-foundation-easycla bot commented May 1, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@bdljohnson bdljohnson force-pushed the 7610-universal-augment-govcloud-support branch from f469476 to a14f8e8 Compare May 2, 2024 21:34
@bdljohnson bdljohnson force-pushed the 7610-universal-augment-govcloud-support branch from a14f8e8 to f67801e Compare May 2, 2024 21:38
c7n/tags.py Outdated
# unless the call is being made to us-east-1. For govcloud this is us-gov-west-1.
partition = utils.get_partition(self.region)
r = ""
if partition == "aws-us-gov":
Copy link
Collaborator

Choose a reason for hiding this comment

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

this logic feels like it would be better in a utility function in utils.py, like get_global_region(partition) it would also help on the lack of test coverage

@bdljohnson bdljohnson requested a review from kapilt May 7, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Review
Development

Successfully merging this pull request may close these issues.

Policy using resource: iam-policy recieves UnrecognizedClientException during dry-run in GovCloud
2 participants