AWSCloudFormationStackSetAdministrationRole— in the administrator (management) account.AWSCloudFormationStackSetExecutionRole— in each target account (or in the same account for single-account testing).
Quick checklist
- Create administration and execution IAM roles using the exact names above.
- Set correct trust relationships (CloudFormation service for admin; admin role ARN for execution).
- Use Service-managed permissions when creating the StackSet (simplest option).
- Delete stack instances first when cleaning up, then delete the StackSet.
- Create the administration role
- Open the IAM console and navigate to Roles → Create role.
- Choose AWS service as the trusted entity and select CloudFormation as the use case.
- Attach the
AdministratorAccesspolicy (or a scoped policy that fits your organization). - Name the role exactly:
AWSCloudFormationStackSetAdministrationRole. - Create the role.

- Create the execution role
- In IAM, create another role with the exact name:
AWSCloudFormationStackSetExecutionRole.- Recommended: choose “Another AWS account” and specify the administrator account ID as the trusted principal. This sets the admin account as the allowed principal to assume this role.
- Alternative: create the role via AWS service → CloudFormation, then edit its trust policy to allow the admin role ARN to assume it.
- Attach
AdministratorAccess(or a scoped policy that grants permission to create the resources in your template). - This execution role will be assumed by the administration role when CloudFormation deploys resources into target accounts.

- Configure the execution role trust relationship
- If the execution role was created with a service principal (for example
cloudformation.amazonaws.com), edit the role’s trust policy so it trusts the administration role ARN in the administrator account. This change allows the administration role to assume the execution role in the target account. - Example trust policy for the administration role (CloudFormation service assumes this admin role):
- Example trust policy for the execution role (replace
123456789012with your administrator account ID):

When editing the execution role trust policy, use your administrator account ID and the exact role name
AWSCloudFormationStackSetAdministrationRole. Any typo in the role name or account ID will prevent StackSets from assuming the execution role.- Create a StackSet (service-managed permissions)
- In the CloudFormation console choose StackSets → Create stack set.
- For Permissions, select Service-managed permissions. With this option, the CloudFormation service manages cross-account/region operations and permissions for you.
- Enter the administration role name:
AWSCloudFormationStackSetAdministrationRole. - For the execution role name, enter
AWSCloudFormationStackSetExecutionRole.



- Provide the template and deployment targets
- Upload a CloudFormation template (YAML or JSON). For demonstrations, a simple template that creates an S3 bucket is sufficient.
- Provide the StackSet name (for example
DemoStackSet), description, parameter values, and tags as needed. - Under Deployment options:
- Accounts: add one or more target account IDs. For a single-account demo, you can use the same account ID as the admin account.
- Regions: select the AWS Regions where you want StackSet instances created.

- Example: specify your account number(s) in the Accounts field.

- Choose Regions (for example
us-east-2andus-east-1), adjust concurrency and failure tolerance (defaults are often fine for demos), then submit the StackSet creation.

- Monitor the StackSet operation
- Once submitted, CloudFormation runs an operation to create stack instances in the selected Regions/accounts. Monitor progress on the StackSet details page and check the stack instance statuses.
- When the operation completes, you should see stack instances for each chosen Region/account. For templates that create S3 buckets, verify the buckets exist in each selected Region.


- Use the StackSet instances table to confirm status broken down by account and Region.

- Clean up (delete instances, then the StackSet)
- Delete stack instances first:
- Select the StackSet → Actions → Delete stacks.
- Choose the account(s) and Region(s) to remove instances from, and submit the delete operation.
- After stack instances are removed, delete the StackSet itself:
- Select the StackSet and choose Actions → Delete stack set.

Delete StackSet stack instances before deleting the StackSet itself. Deleting the StackSet does not remove existing stack instances; failing to delete instances first can leave orphaned stacks that require manual cleanup.
Summary
- Create two IAM roles with exact names:
AWSCloudFormationStackSetAdministrationRole(admin) andAWSCloudFormationStackSetExecutionRole(execution). - Configure the administration role so CloudFormation can assume it (service principal).
- Edit the execution role trust policy to allow the administration role ARN to assume the execution role.
- Create a service-managed StackSet, specify admin and execution role names, upload a template, and target the desired accounts and Regions.
- For teardown, delete stack instances first, then delete the StackSet.