Forked from srcecde/whitelistIP_API_Gateway_rp.json
Created
December 9, 2023 10:43
-
-
Save robertoporfiro/2f37b0d8837b283cb4ec82fb389382c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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