examples icon indicating copy to clipboard operation
examples copied to clipboard

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

Open clock21am opened this issue 6 years ago • 2 comments

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.

clock21am avatar Mar 19 '18 09:03 clock21am

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

ghost avatar Mar 19 '18 14:03 ghost

...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.

AnnaSkawinska avatar Jan 12 '21 23:01 AnnaSkawinska