Tim-B/grunt-aws-lambda

Can't seem to authenticate

thestumonkey opened this issue · 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?

Tim-B commented

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 commented

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

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