Credentials profile is invalid while trying to Connect to AWS
See original GitHub issueDescribe the bug Installed AWS toolkit for VS Code, I have my config and credentials file with the following key and their values config
[default]
region = us-west-2
credentials
[default]
AWS_ACCESS_KEY_ID=<key>
AWS_SECRET_ACCESS_KEY=<secret>
AWS_SESSION_TOKEN=<token>
Clicking on Connect to AWS using default profile will pop an error dialogue that says Credential profile default is invalid To Reproduce
Expected behavior Connection successful to AWS
Screenshots
Desktop (please complete the following information):
- OS: Windows 10 Enterprise, Build 1803 (x64)
- Visual Studio Code Version: 1.36.1
- AWS Toolkit for Visual Studio Code Version: 1.0.0
Additional context Have tried using a named profile instead of default, the error persist
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Resolve issues signing in to your AWS console
You can't sign in to an AWS account because you're using incorrect credentials (email address, user name, or password), or you forgot the ......
Read more >Setting up your AWS credentials - AWS Toolkit for VS Code
To access Amazon Web Services (AWS) with the AWS Toolkit for Visual Studio Code, you must make your AWS account credentials available to...
Read more >Using the AWS credentials file and credential Profiles
If no credentials or profiles were explicitly provided to the SDK and no credentials were defined in environment variables, but a credentials file...
Read more >Resolve the IAM Error "AWS was not able to validate the ...
"An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials.
Read more >Troubleshoot errors with credentials when connecting ... - AWS
1.FSPOpen the Amazon EC2 console, and then choose Instances. · 2.FSPFind the EC2 instance that you want to connect to using SSH. ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For what it’s worth, I’ve just had the same error as the OP
AWS Toolkit 1.15.0
What solved the problem for me was to change the profile entries in ~/.aws/config from
[profileX]
to[profile profileX]
Thank you for the confirmation @jmery
I will close this issue, as the work will be tracked in these separate issues.