question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ENOENT error when there is a config file but not a credentials file present

See original GitHub issue

If 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:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
thomasmichaelwallacecommented, Dec 1, 2020

@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. 😄

0reactions
justinmk3commented, Apr 8, 2021

The following prerelease build includes the fix, we appreciate your feedback:

  1. Download/extract the prerelease build: aws-toolkit.zip
  2. From the VSCode command list (ctrl-shift-p or cmd-shift-p) run Extensions: Install from VSIX... to install the *.vsix file.
  3. Reload VSCode and verify that the Toolkit has the new version (not the release/older version).
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found