AWS provider credentials not found. Learn how to set up AWS provider credentials in our docs here.

 Serverless aws error:


This is because the credentials is saved under the profile in local computer.

Command to set up with profile was:

serverless config credentials -o --provider aws --key AKIA3LZR3EC2QRRONTGF --secret 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 --profile serverless-admin


This doesnot work when we deploy it with serverless command:
serverless deploy

WE need to give the credential for whole laptop, so the profile should be removed.

serverless config credentials -o --provider aws --key AKIA3LZR3EC2QRRONTGF --secret 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

Just above command will work fine.

 

REF: 

https://stackoverflow.com/questions/46128469/aws-lambda-serverless-deploy-asking-for-aws-provider-credentials

Comments

Popular posts from this blog

Changing the dark theme for mysql workbench