sparse-state-3422904/20/2020, 9:09 AM
great-postman-5927104/20/2020, 9:15 AM
it will return the correct account id depending on the profile i call it with.
But when i try to define a profile in the stack config, it is not working. It will still try to get credentials from the .aws/credentials file and if those credentials are not for the correct AWS account, i will just get some 403 errors when pulumi tries to delete resources it does not have credentials to access.
I already tried a few things, but i also cant figure out if it is even supported or not by pulumi, so i thought i'd ask here to see if anyone has experience in this 🙂
aws sts get-caller-identity
quaint-hydrogen-722804/21/2020, 6:44 AM
great-postman-5927104/21/2020, 9:40 AM
i will get my personal account but if i call
aws2 sts get-caller-identity
i will get info from the other account.
I would assume pulumi works by calling the cli in the same fashion?
So really not sure where the problem is and why its not really working. 😕
aws2 sts get-caller-identity --profile someProfile
quaint-hydrogen-722804/21/2020, 12:01 PM
great-postman-5927104/21/2020, 12:35 PM
quaint-hydrogen-722804/21/2020, 1:06 PM
great-postman-5927104/22/2020, 6:24 AM