Created
July 27, 2018 22:16
-
-
Save rendicott/7a5112190f531594c6a36e3d7c9b47aa to your computer and use it in GitHub Desktop.
Role and policy that trusts all accounts in an organization and requires an external ID
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": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"dynamodb:BatchGetItem", | |
"dynamodb:Scan", | |
"dynamodb:ListTagsOfResource", | |
"dynamodb:Query", | |
"dynamodb:DescribeStream", | |
"dynamodb:DescribeTimeToLive", | |
"dynamodb:ListStreams", | |
"dynamodb:DescribeGlobalTableSettings", | |
"dynamodb:DescribeReservedCapacityOfferings", | |
"dynamodb:DescribeTable", | |
"dynamodb:GetShardIterator", | |
"dynamodb:DescribeGlobalTable", | |
"dynamodb:DescribeReservedCapacity", | |
"dynamodb:GetItem", | |
"dynamodb:DescribeContinuousBackups", | |
"dynamodb:DescribeBackup", | |
"dynamodb:DescribeLimits", | |
"dynamodb:GetRecords" | |
], | |
"Resource": "arn:aws:dynamodb:us-east-1:123456789123:table/tabletop", | |
"Condition": { | |
"StringEquals": { | |
"aws:PrincipalOrgID": [ | |
"o-abbcgeeg" | |
] | |
} | |
} | |
} | |
] | |
} |
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": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "sts:AssumeRole", | |
"Condition": { | |
"StringEquals": { | |
"sts:ExternalId": "e1245787-sdf358-asdfbf-932-939asdfawefdca" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment