Skip to content

Instantly share code, notes, and snippets.

@avishayil
Created September 21, 2019 08:18
Show Gist options
  • Save avishayil/c5312f987bd2d7f118e50bed4fcc0391 to your computer and use it in GitHub Desktop.
Save avishayil/c5312f987bd2d7f118e50bed4fcc0391 to your computer and use it in GitHub Desktop.
This IAM Policy denies any request if it doesn't originate from the explicitly mentioned IP address.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": "*",
"Resource": "*",
"Condition": {
"NotIpAddress": {
"aws:SourceIp": [
"YOURIPADDRESS"
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment