I've recently started using the aws-sdk-go package.
Walking through the instructions, my folder structure is as follows:
Now when I run go install
, and then execute the app.exe (using windows here),
I'm getting the following error:
panic: NoCredentialProviders: no valid providers in chain
Any ideas?
You need to provide an AWS access key and secret key to authenticate and use AWS services.
See the README here https://github.com/aws/aws-sdk-go#configuring-credentials
If anyone runs into the same issue I had with this:
I read a doc that said to put the file at %USERPROFILE%.awscredentials
on a Windows, but they just forgot the slash. It should be %USERPROFILE%.aws/credentials
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With