Setting up CloudFormation StackSets - Application Migration Service

Setting up CloudFormation StackSets

After you set up your organization, you need to configure CloudFormation StackSet in order to create the required role per management account: AWSApplicationMigrationSharingRole_<MANAGEMENT_ACCOUNT_ID>.

AWS CloudFormation StackSets extends the capability of stacks by enabling you to create, update, or delete stacks across multiple accounts and AWS Regions with a single operation.

Learn more about CloudFormation StackSets.


You can choose to create the roles manually in each member account of the organization. However, this will need to be done for each account, one by one, while StackSet automatically creates the roles in all accounts.

To set up your StackSet, take the following steps:

  1. Set up your StackSet

    1. Go to the CloudFormation console.

    2. Select StackSets.

    3. Click on 'Activate trusted access' button.

    4. Create StackSet.

    5. On the Choose a template page, under Prerequisites – prepare template, choose Use a sample template.

    6. Under Select a sample template, select Create roles to access multiple accounts via AWS Application Migration Service, and then click Next.

    7. Fill in the name and description according to your preferences or use the existing values.

    8. Under Parameters, add the account ID of each admin or delegated admin and click Next.

    9. Select or fill in the required parameters according to your preferences.

      • Under Deployment targets, select Deploy to organization.

      • Select only one specific AWS Region – it is advisable to select your StackSet Region.

      • To provide enhanced stability, it is advisable to set the Failure tolerance optional to a high value (at least as high as the number of accounts within the organization).

    10. Check the box next to I acknowledge that AWS CloudFormation might create IAM resources with custom names and click Submit.

    Once all the steps are completed, you should be able to see your new StackSet in StackSet details > Stack instances.