Created
May 28, 2020 07:57
-
-
Save klang/909950a130d1677ffbc76fd05ec53f25 to your computer and use it in GitHub Desktop.
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
--- | |
Parameters: | |
RootAccountID: | |
Type: String | |
Description: AccountID for the Organization hosting the Automated Landing Zone Stack Sets | |
AWSTemplateFormatVersion: '2010-09-09' | |
Resources: | |
AWSCloudFormationStackSetExecutionRole: | |
Type: AWS::IAM::Role | |
Properties: | |
RoleName: AWSCloudFormationStackSetExecutionRole | |
AssumeRolePolicyDocument: | |
Statement: | |
- Action: sts:AssumeRole | |
Effect: Allow | |
Principal: | |
AWS: !Join [ "", ['arn:aws:iam::', !Ref RootAccountID, ':root']] | |
Version: '2012-10-17' | |
Path: "/" | |
InlineAdministratorAccess: | |
Type: AWS::IAM::Policy | |
Properties: | |
PolicyName: "root" | |
PolicyDocument: | |
Version: "2012-10-17" | |
Statement: | |
- | |
Effect: "Allow" | |
Action: "*" | |
Resource: "*" | |
Roles: | |
- | |
Ref: "AWSCloudFormationStackSetExecutionRole" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment