Skip to content

PowerShell Assume Role Credentials Presists in subsequent execution #314

Answered by 99RareCandiez
swordfish291 asked this question in Q&A
Discussion options

You must be logged in to vote

Away from my PC, but is it possible it's an issue with the Role Session Name ? try changing the role session name to have a variable as the last character so each creation of role session is unique. You could store value in file in attached storage that's not temp, or could create a parameter and just put numeric value 1 in it. read it with lambda function then add it to end of role session name, then write it back to the parameter as $i + 1 (ie 2 2nd time) ,

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ashishdhingra
Comment options

Answer selected by swordfish291
Comment options

You must be logged in to vote
2 replies
@ashishdhingra
Comment options

@swordfish291
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. module/powershell-cmdlets doc-developerguide
3 participants