Skip to content

Instantly share code, notes, and snippets.

@pwood
Created November 27, 2019 20:30
Show Gist options
  • Save pwood/3efae439575e51065dbc4266a9dff7f1 to your computer and use it in GitHub Desktop.
Save pwood/3efae439575e51065dbc4266a9dff7f1 to your computer and use it in GitHub Desktop.
Example of Role with sts:ExternalId
"SumoLogicRole": {
"Type": "AWS::IAM::Role",
"Properties": {
"Path": "/",
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": [
"sts:AssumeRole"
],
"Effect": "Allow",
"Principal": {
"AWS": [
{
"Fn::Sub": "arn:aws:iam::${SumologicAccountNumber}:root"
}
]
},
"Condition": {
"StringEquals": {
"sts:ExternalId": {
"Ref": "SumologicExternalId"
}
}
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment