Created
November 27, 2019 20:30
-
-
Save pwood/3efae439575e51065dbc4266a9dff7f1 to your computer and use it in GitHub Desktop.
Example of Role with sts:ExternalId
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
"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