Skip to content

Conversation

@varungovinda
Copy link

@varungovinda varungovinda commented Oct 27, 2025

Issue #, if available:

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

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

@codecov-commenter
Copy link

codecov-commenter commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.33%. Comparing base (68039fa) to head (4efb848).
⚠️ Report is 368 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9816      +/-   ##
===========================================
- Coverage    93.40%   93.33%   -0.07%     
===========================================
  Files          211      209       -2     
  Lines        17012    16808     -204     
===========================================
- Hits         15890    15688     -202     
+ Misses        1122     1120       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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 datadoes 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.

3 participants