Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save klang/909950a130d1677ffbc76fd05ec53f25 to your computer and use it in GitHub Desktop.
Save klang/909950a130d1677ffbc76fd05ec53f25 to your computer and use it in GitHub Desktop.
---
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