Skip to content

Instantly share code, notes, and snippets.

@spasam
Created March 27, 2023 18:39
Show Gist options
  • Save spasam/cc98107fc33198a5fbceb8afe964c505 to your computer and use it in GitHub Desktop.
Save spasam/cc98107fc33198a5fbceb8afe964c505 to your computer and use it in GitHub Desktop.
Allow access to all resources within an AWS account for principals from multiple organizations
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowAccessToMultipleOrgs",
"Effect": "Allow",
"Action": "*",
"Resource": "*",
"Condition": {
"StringLike": {
"aws:PrincipalOrgPaths": [
"o-1234567890/*",
"o-0987654321/*"
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment