Skip to content

Instantly share code, notes, and snippets.

@norbinsh
Created August 4, 2019 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norbinsh/0ee4ddeb367f93bd2c040e4813cf1ec7 to your computer and use it in GitHub Desktop.
Save norbinsh/0ee4ddeb367f93bd2c040e4813cf1ec7 to your computer and use it in GitHub Desktop.
DenyAllOutsideEUWEST1ExceptGlobalServices
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyAllOutsideEUWEST1ExceptGlobalServices",
"Effect": "Deny",
"NotAction": [
"iam:*",
"organizations:*",
"route53:*",
"budgets:*",
"waf:*",
"cloudfront:*",
"globalaccelerator:*",
"importexport:*",
"support:*",
"aws-portal:*",
"sts:*",
"s3:ListAllMyBuckets",
"s3:GetBucketLocation",
"directconnect:*",
"cur:*",
"artifact:*",
"resource-groups:*",
"tag:*",
"trustedadvisor:*",
"chime:*"
],
"Resource": "*",
"Condition": {
"StringNotEquals": {
"aws:RequestedRegion": [
"eu-west-1"
]
}
}
},
{
"Sid": "AllowAllEUWEST1",
"Effect": "Allow",
"Action": "*",
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment