ENOENT error when there is a config file but not a credentials file present
See original GitHub issueIf shared credentials are set up in the config file, and no credentials file is present, the toolkit brings up an error message when trying to connect to AWS. Users are unable to connect to AWS unless they make an empty credentials file in the .aws folder at the very least.
This was demonstrated on OSX
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:7 (6 by maintainers)
Top Results From Across the Web
How to resolve Nodejs: Error: ENOENT: no such file or directory
Your app is expecting to find a file at /home/embah/node/nodeapp/config/config.json but that file does not exist (which is what ENOENT ...
Read more >Resolve "Unable to locate credentials" error in Amazon S3
An "Unable to locate credentials" error indicates that Amazon S3 can't find the credentials to authenticate AWS API calls. To resolve this issue,...
Read more >Troubleshooting AWS CLI errors - AWS Command Line Interface
Confirm that your AWS CLI is configured. Various errors can occur if your config and credentials files or your IAM user or roles...
Read more >Troubleshooting - Chef Software
If there's no client.rb file, regenerate it and ensure the values for the node_name and client_key settings are correct. Organization not found.
Read more >include GOOGLE_APPLICATION_CREDENTIALS json file in ...
Is it not possible to deploy json files in netlify functions? ... file at pgnfen2-xxx.json does not exist, or it is not a...
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

@justinmk3 yes- the fix was designed for the case where you wanted to only use a config file with no credentials. I use it myself in production (on osx and linux).
To help debug, can I invite you to work through the following response to someone else who '@'d me about the fix: https://github.com/aws/aws-sdk-js/issues/3436#issuecomment-727180538
Assuming that this toolkit (which I do not use) isn’t doing anything too exciting, I suspect your environment is either not setup correctly, or is not being carried over into vscode.
As a hunch, your debugging may reveal a separate bug that the sdk requires a credential file to resolve the region. But, at present, that’s pure speculation on my part. 😄
~/.aws/credentialsfile.The following prerelease build includes the fix, we appreciate your feedback:
ctrl-shift-porcmd-shift-p) runExtensions: Install from VSIX...to install the*.vsixfile.