Skip to content

Instantly share code, notes, and snippets.

@shiro01
Last active October 17, 2018 00:51
Show Gist options
  • Save shiro01/b022897b08aa391ef3b79ddacd918eb9 to your computer and use it in GitHub Desktop.
Save shiro01/b022897b08aa391ef3b79ddacd918eb9 to your computer and use it in GitHub Desktop.
APIGateway_Resource_Policie. Allow IP.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": "execute-api:Invoke",
"Resource": "arn:aws:execute-api:ap-northeast-1:*:*/test_stage/POST/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": [
"xxx.xxx.xxx.xxx",
"xxx.xxx.xxx.xxx"
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment