AWS govcloud - Assume role #67807
implicitnewt
started this conversation in
Bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/aws.py
In assumed_creds function I added the following check for "us-gov" in location and removed the hard coded call to sts.amazonaws.com. Pretty much a hack, I'll leave it to someone else to come up with a better idea for it.
def assumed_creds(prov_dict, role_arn, location=None):
valid_session_name_re = re.compile("[^a-z0-9A-Z+=,.@-]")
..................................
Beta Was this translation helpful? Give feedback.
All reactions