How do I deploy multiple OUs in one stack set update operation?

2 minute read
0

I want to deploy more than ten organizational units (OUs) in one service-managed stack set update operation.

Resolution

Complete the following steps to deploy multiple OUs to a stack set during an update.

Prerequisite

Before you begin, get your organizational unit (OU) ID or your root ID. To find the OU ID, use the AWS Organizations console.

To access your root ID, use the listRoots API or list-roots AWS Command Line Interface (AWS CLI):

aws organizations list-roots

Note: If you receive errors when you run AWS Command Line Interface (AWS CLI) commands, then see Troubleshoot AWS CLI errors. Also, make sure that you're using the most recent AWS CLI version.

Deploy the stack set to multiple OUs in a single update operation

Complete the following steps:

  1. Log in to the AWS CloudFormation console.
  2. In the left navigation pane, choose StackSets. Then, select your stack set from the list.
  3. Choose the Actions menu. Then, choose Edit StackSet details.
    Note: You can replace the current template.
  4. Choose Next.
  5. Under Set deployment options, choose the Deploy to organizational units (OUs) option.
  6. Under Organizational units (OUs), in AWS OU ID, enter the organization root ID (for example, r-abcd). Or, enter the parent OU ID (for example, ou-abc12de ). StackSets deploys the changes to all the accounts in the target OUs, including the children of these OUs.
  7. Choose Next.
    Note: You can make other changes.
  8. Review the changes and choose Submit.

Related information

Update your stack set

AWS OFFICIAL
AWS OFFICIALUpdated 2 months ago