Tim-B / grunt-aws-lambda

A grunt plugin to assist in developing functions for AWS Lambda.
MIT License
247 stars 100 forks source link

Can't seem to authenticate #91

Open thestumonkey opened 7 years ago

thestumonkey commented 7 years ago

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?

Tim-B commented 7 years ago

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

thestumonkey commented 7 years ago
screen shot 2016-10-25 at 16 29 05
Tim-B commented 7 years ago

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

thestumonkey commented 7 years ago
screen shot 2016-11-08 at 13 15 44
bsheen commented 7 years ago

@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?