Skip to content

Instantly share code, notes, and snippets.

@billmetangmo
Created July 2, 2024 09:55
Show Gist options
  • Save billmetangmo/ecb589e85d0bf93e518f0e2275bf3b34 to your computer and use it in GitHub Desktop.
Save billmetangmo/ecb589e85d0bf93e518f0e2275bf3b34 to your computer and use it in GitHub Desktop.
scp deny all unused regions
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyCreateResourcesInSpecificRegions",
"Effect": "Deny",
"Action": [
"*"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"aws:RequestedRegion": [
"us-east-2",
"eu-central-1",
"eu-west-3",
"ap-northeast-2",
"us-west-2",
"eu-north-1",
"ap-southeast-1",
"ap-northeast-1",
"ca-central-1",
"eu-west-2",
"ap-south-1",
"sa-east-1",
"ap-northeast-3",
"ap-southeast-2",
"us-west-1"
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment