serverless icon indicating copy to clipboard operation
serverless copied to clipboard

AWS profile "default" doesn't seem to be configured

Open waynerobinson opened this issue 3 years ago • 10 comments

If we're deploying directly from an AWS instance which has a role with adequate permissions for the deploy already (without roleArn, accessKeyId or sessionToken Serverless raises the mentioned exception.

https://github.com/serverless/serverless/blob/341a886874eb8a6c671f576323e75a77cffa1fd2/lib/plugins/aws/provider.js#L127-L139

Our ~/.aws/config file just looks like this and is adequate to access all the resources required:

[default]
region = ap-southeast-2

waynerobinson avatar Apr 08 '21 23:04 waynerobinson