Created
March 27, 2023 18:38
-
-
Save spasam/a8e68a932b134325c29fdea77ec4546c to your computer and use it in GitHub Desktop.
Restrict access to all resources within an AWS account to only principals from the organization
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": [ | |
{ | |
"Sid": "RestrictAccessToOrg", | |
"Effect": "Deny", | |
"Action": "*", | |
"Resource": "*", | |
"Condition": { | |
"StringNotEquals": { | |
"aws:PrincipalOrgID": "o-1234567890" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment