StackSet Enabler deploys the required StackSet roles to your accounts. See the self-managed permissions document for more information.
StackSet Enabler does the following:
- Creates the
AWSCloudFormationStackSetAdministrationRole
role in your current account. - Assumes the
OrganizationAccountAccessRole
role in your child accounts. - Creates the
AWSCloudFormationStackSetExecutionRole
role within each child account.
Create an accounts.txt
, then enter one account number per line. Next, execute the Python script:
python enabler.py
The script will then log its status:
Setting up admin account: 111111111111
Stack has already been deployed in this account
Setting up child account: 222222222222
Asssuming role: OrganizationAccountAccessRole
Extracted credentials from assumed role
Stack has already been deployed in this account
Setting up child account: 333333333333
Asssuming role: OrganizationAccountAccessRole
Extracted credentials from assumed role
Deploying execution stack