You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And i have 4 profiles configured (works with aws CLI). In the credentials file, 3 of the profiles have aws_access_key_id and aws_secret_access_key configured. For the one production profile, i have the SSO configured and logged in. But when running this code with AWS_PROFILE=prod (the sso profile), i get the following error:
error: operation error EC2: DescribeInstances, https response error StatusCode: 401, RequestID: fe078f76-fc08-4312-a133-d1bb106b9cc6, api error AuthFailure: AWS was not able to validate the provided access credentials
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have this following code with v2 SDK:
And i have 4 profiles configured (works with aws CLI). In the credentials file, 3 of the profiles have
aws_access_key_id
andaws_secret_access_key
configured. For the one production profile, i have the SSO configured and logged in. But when running this code withAWS_PROFILE=prod
(the sso profile), i get the following error:Beta Was this translation helpful? Give feedback.
All reactions