Skip to content

assuming two profiles #865

Answered by MDBeudekerCN
sebas-500 asked this question in Q&A
Discussion options

You must be logged in to vote

When you run assume $profile, you receive temporaty credentials from your identity provider.

When assume another role, you get new credentials, so the 1st set of credentials are not used anymore

you can validate this by running aws sts get-caller-identity

not sure why you would want to assume two different roles with terraform by the way, I separate workloads for different accounts and run these workloads separate from each other

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chrnorm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #823 on May 11, 2025 14:35.