Open xente opened 1 year ago
@xente , make sure you make the sts assume-role call using a regional sts endpoint (or else it will use the default/global one and you will get a version 1 token, which is not valid for new regions).
It is all well described here: https://repost.aws/knowledge-center/iam-validate-access-credentials
Describe the bug
I am trying to migrate our infrastructure from France to Spain but when I run the scripts next error appears
An error occurred (AuthFailure) when calling the DescribeRegions operation: AWS was not able to validate the provided access credentials
[error]Error: The process '/usr/local/bin/aws' failed with exit code 254
Using the same code but with the France region is working fine
To reproduce
Test1
Test2
Expected behavior
Connect to my account and list the describe-regions
Your Environment
Additional context
I have executed this command from my laptop with the same credentials using my CLI and it is working fine.