Skip to content

Instantly share code, notes, and snippets.

@srcecde
Last active December 9, 2023 10:43
Show Gist options
  • Save srcecde/7079f6af505595f56033d6bc01c814e4 to your computer and use it in GitHub Desktop.
Save srcecde/7079f6af505595f56033d6bc01c814e4 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": "execute-api:Invoke",
"Resource": "execute-api:/*/*/*"
},
{
"Effect": "Deny",
"Principal": "*",
"Action": "execute-api:Invoke",
"Resource": "execute-api:/*/*/*",
"Condition": {
"NotIpAddress": {
"aws:SourceIp": ["YOUR IP ADDRESS", "IP CIDR BLOCK"]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment