Problem: "AWSCloudFormationStackSetExecutionRole already exists" error
When creating AWS CloudFormation StackSets
-
AWSCloudFormationStackSetAdministrationRole - This role is deployed to the Management account.
-
AWSCloudFormationStackSetExecutionRole - This role is deployed to all accounts.
When deploying Landing Zone Accelerator on AWS to an environment where these roles already exist, the pipeline will fail with the AWSCloudFormationStackSetAdministrationRole already exists or AWSCloudFormationStackSetExecutionRole already exists error.
Resolution
-
Delete the
AWSCloudFormationStackSetAdministrationRoleIAM role from the Management account. -
Delete the
AWSCloudFormationStackSetExecutionRoleIAM role from all accounts. -
Retry the failed pipeline stage.