Skip to content

Conversation

@varungovinda
Copy link

@varungovinda varungovinda commented Oct 27, 2025

Description of changes: This PR updates the get_policy_arn_suffix function to dynamically load AWS partition information using botocore's RuleSetStandardLibary and partitions.json instead of hardcoded region mappings.

Affected commands:

  • aws dlm create-default-role
  • aws emr create-default-roles
  • aws emr-containers update-role-trust-policy
  • emr-containers create-role-associations

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@AndrewAsseily AndrewAsseily left a comment

Choose a reason for hiding this comment

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

Thanks for this PR! We'll likely need to remove the forward-compatible test for cn-northwest-2 unless we reintroduce the old string prefix fallback behavior, since aws_partition should handle this but the current partitions data does not include that specific test case.

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