Skip to content

Instantly share code, notes, and snippets.

@georgmao
Created December 21, 2017 20:46
Show Gist options
  • Save georgmao/503e83d5ac85d0fa9cdc29c486af49a3 to your computer and use it in GitHub Desktop.
Save georgmao/503e83d5ac85d0fa9cdc29c486af49a3 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"apigateway:GET"
],
"Resource": [
"arn:aws:apigateway:*::/*",
"arn:aws:apigateway:*::/restapis/*"
]
},
{
"Effect": "Allow",
"Action": [
"apigateway:PUT"
],
"Resource": [
"arn:aws:apigateway:us-west-2::/restapis/jdy6k2gmn1/*"
]
},
{
"Effect": "Deny",
"Action": [
"apigateway:PUT",
"apigateway:POST",
"apigateway:PATCH",
"apigateway:DELETE"
],
"Resource": [
"arn:aws:apigateway:us-west-2::/restapis/jdy6k2gmn1/resources/q0atvc",
"arn:aws:apigateway:us-west-2::/restapis/jdy6k2gmn1/resources/q0atvc/*",
"arn:aws:apigateway:us-west-2::/restapis/jdy6k2gmn1/resources/q0atvc/methods/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment