Created
May 14, 2019 08:36
-
-
Save s0enke/f92b58078bdb3b626c9ea70436d85b42 to your computer and use it in GitHub Desktop.
Restrict AWS Org to Regions
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
# Landing Zone Service Control Policies | |
organization_policies: | |
... | |
- name: restrict-to-eu | |
description: Restrict to EU regions | |
policy_file: policies/restrict_to_eu_regions.json | |
#Apply to accounts in the following OU(s) | |
apply_to_accounts_in_ou: | |
- core | |
- applications |
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": [ | |
{ | |
"Sid": "DenyAllOutsideEU", | |
"Effect": "Deny", | |
"NotAction": [ | |
"cloudfront:*", | |
"iam:*", | |
"route53:*", | |
"support:*", | |
"billing:*", | |
"cloudtrail:*", | |
"a4b:*", | |
"budgets:*", | |
"ce:*", | |
"chime:*", | |
"cur:*", | |
"globalaccelerator:*", | |
"health:*", | |
"importexport:*", | |
"mobileanalytics:*", | |
"organizations:*", | |
"shield:*", | |
"trustedadvisor:*", | |
"waf:*", | |
"wellarchitected:*" | |
], | |
"Resource": "*", | |
"Condition": { | |
"StringNotEquals": { | |
"aws:RequestedRegion": [ | |
"eu-central-1", | |
"eu-west-1" | |
] | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment