Closed eblfo closed 10 months ago
@eblfo what version of serverless-better-credentials
are you using ?
Have you tried v1.2.1 (with the latest aws-sdk
v2 package installed, as it is a peer-dependency) ?
Could you share what your config file look like (~/.aws/config) ?
i tried 1.2.1 and its the same error
there is no aws config file as the instance profile of the aws ec2 instance makes sure credentials are available (aws-sdk takes care)
currently i remove the use of the plugin when run on ec2 instance (CI process)
It's a bit late, but I've added a bit to the readme about how to deal with this CI/CD scenario by creating a temporary ~/.aws/credentials
file- see:
I'll close this issue for now, but feel free to re-open if you have any trouble.
well, my solution is to remove the plugin off the sls.yml during CI/CD
tx for your effort
Hah, also a good solution 😄
Describe the bug
running
sls package
on instance with instance profile sourced temporary aws credentials the following error shows up:ENOENT: no such file or directory, open '/home/node/.aws/credentials'
adding the file (touch), a new error:
ProcessCredentialsProviderFailure: Profile default not found
(unsetting the variable withAWS_PROFLE=
does not work)Expected behavior
if no profile is set - use instance profile credentials
Screenshots
normal call:
with empty credentials file
sls yml - plugins used
Desktop (please complete the following information): see debug output above