Last active
March 25, 2023 20:45
-
-
Save spasam/790a3bd7ab0d4a744bb1ae1622a4fd9c to your computer and use it in GitHub Desktop.
Disallows access to unlisted operations in global and regional services outside of the specified regions
This file contains 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": [ | |
{ | |
"Condition": { | |
"StringNotEquals": { | |
"aws:RequestedRegion": [ | |
"us-east-1", | |
"us-west-2" | |
] | |
}, | |
"ArnNotLike": { | |
"aws:PrincipalARN": [ | |
"arn:aws:iam::*:role/AWSControlTowerExecution" | |
] | |
} | |
}, | |
"Resource": "*", | |
"Effect": "Deny", | |
"NotAction": [ | |
"a4b:*", | |
"access-analyzer:*", | |
"acm:*", | |
"account:*", | |
"activate:*", | |
"artifact:*", | |
"aws-marketplace-management:*", | |
"aws-marketplace:*", | |
"aws-portal:*", | |
"billingconductor:*", | |
"budgets:*", | |
"ce:*", | |
"chatbot:*", | |
"chime:*", | |
"cloudfront:*", | |
"compute-optimizer:*", | |
"config:*", | |
"cur:*", | |
"datapipeline:GetAccountLimits", | |
"devicefarm:*", | |
"directconnect:*", | |
"discovery-marketplace:*", | |
"ec2:DescribeRegions", | |
"ec2:DescribeTransitGateways", | |
"ec2:DescribeVpnGateways", | |
"ecr-public:*", | |
"fms:*", | |
"globalaccelerator:*", | |
"health:*", | |
"iam:*", | |
"importexport:*", | |
"kms:*", | |
"license-manager:ListReceivedLicenses", | |
"lightsail:Get*", | |
"mobileanalytics:*", | |
"networkmanager:*", | |
"organizations:*", | |
"pricing:*", | |
"resource-explorer-2:*", | |
"route53-recovery-cluster:*", | |
"route53-recovery-control-config:*", | |
"route53-recovery-readiness:*", | |
"route53:*", | |
"route53domains:*", | |
"s3:CreateMultiRegionAccessPoint", | |
"s3:DeleteMultiRegionAccessPoint", | |
"s3:DescribeMultiRegionAccessPointOperation", | |
"s3:GetAccountPublic", | |
"s3:GetAccountPublicAccessBlock", | |
"s3:GetBucketLocation", | |
"s3:GetBucketPolicyStatus", | |
"s3:GetBucketPublicAccessBlock", | |
"s3:GetMultiRegionAccessPoint", | |
"s3:GetMultiRegionAccessPointPolicy", | |
"s3:GetMultiRegionAccessPointPolicyStatus", | |
"s3:GetStorageLensConfiguration", | |
"s3:GetStorageLensDashboard", | |
"s3:ListAllMyBuckets", | |
"s3:ListMultiRegionAccessPoints", | |
"s3:ListStorageLensConfigurations", | |
"s3:PutAccountPublic", | |
"s3:PutAccountPublicAccessBlock", | |
"s3:PutMultiRegionAccessPointPolicy", | |
"savingsplans:*", | |
"shield:*", | |
"sso:*", | |
"sts:*", | |
"support:*", | |
"supportapp:*", | |
"supportplans:*", | |
"sustainability:*", | |
"tag:GetResources", | |
"trustedadvisor:*", | |
"vendor-insights:ListEntitledSecurityProfiles", | |
"waf-regional:*", | |
"waf:*", | |
"wafv2:*" | |
], | |
"Sid": "GRREGIONDENY" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment