serverless / examples

Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more.
https://www.serverless.com/examples/
Other
11.45k stars 4.47k forks source link

I am unable to deploy the aws-python-simple-http-endpoint example #253

Open clock21am opened 6 years ago

clock21am commented 6 years ago

An error occurred: ApiGatewayRestApi - User: arn:aws:iam::xxxxxxxxx:user/rajdeep is not authorized to perform: apigateway:POST on resource: arn:aws:apigateway:us-east-1::/restapis.

ghost commented 6 years ago

This is a permissions problem with your AWS user rajdeep. This user needs the correct IAM policy. https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-iam-policy-examples.html

AnnaSkawinska commented 3 years ago

...which, in this case, could be AmazonAPIGatewayAdministrator.

A simple way you can grant it is by going to AWS IAM console, finding the rajdeep IAM user (it should be right there), then clicking "Add permissions" and "Attach existing policies directly".

Once you've found AmazonAPIGatewayAdministrator on the list of policies available, check the checkbox next to it and go further to reviewing and saving the changes.