assuming two profiles #865
-
I'm trying to apply terraform code that has two profiles configured I ran
when I do terraform plan, the credentials for profile1 are gone. To apply this kind of terraform I need to run
Is it possible to use assume tool for this kind of task? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 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 |
Beta Was this translation helpful? Give feedback.
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