grunt-aws-lambda icon indicating copy to clipboard operation
grunt-aws-lambda copied to clipboard

Can't seem to authenticate

Open thestumonkey opened this issue 9 years ago • 5 comments

When running grunt deploy it says Warning: AWS API request failed, check your AWS credentials, region and permissions are correct. Use --force to continue.

Now I have correct .aws credentials as I can get my list of lambda functions via the aws cli. Can this message be more accurate? is there a way to debug the request to find out what's wrong? What else can I check?

thestumonkey avatar Oct 23 '16 10:10 thestumonkey

Is there anything more to the message? It should also display the status code and error message: https://github.com/Tim-B/grunt-aws-lambda/blob/master/utils/deploy_task.js#L130

Tim-B avatar Oct 23 '16 19:10 Tim-B

screen shot 2016-10-25 at 16 29 05

thestumonkey avatar Oct 25 '16 15:10 thestumonkey

Try running it with the --verbose flag, I think it will display the other log which is there then.

Tim-B avatar Oct 29 '16 18:10 Tim-B

screen shot 2016-11-08 at 13 15 44

thestumonkey avatar Nov 08 '16 13:11 thestumonkey

@thestumonkey Did you get anywhere with this? aws cli is seeing the credentials and returning data from "aws lambda list-functions". However, when I try to deploy using lambda_deploy I get the same error you were seeing. What am I missing?

bsheen avatar May 01 '17 00:05 bsheen