[Bug]: Cannot use AWS SSO to configure management account. #28037
Labels
bug
Addresses a defect in current functionality.
service/sts
Issues and PRs that pertain to the sts service.
Terraform Core Version
1.3.5
AWS Provider Version
4.41.0
Affected Resource(s)
No response
Expected Behavior
I wanted to start managing the "management account using terraform, and I needed to add another account, so I thought that I would start by adding in through terraform.
And calling this locally using the aws cli
aws sts get-caller-identity
works just fine as well.Actual Behavior
Relevant Error/Panic Output Snippet
Did some debugging and it seems that when calling via terraform using an AWS SSO profile the `sts get-caller-identity` always fails, changing my profile to target another account works just fine.
Terraform Configuration Files
Steps to Reproduce
Set up AWS SSO with a user that has
AdminAccess
on the management accounttry to run the following terraform against that profile
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: