💾 Archived View for cfdocs.wetterberg.nu › stacksets-orgs-manage-auto-deployment.gemini captured on 2024-12-17 at 15:47:16. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

Manage automatic deployments for a stack set with service\-managed permissions

Search

With automatic deployment enabled, StackSets automatically deploys to accounts that are added to the target organization or organizational units (OUs) in the future. With retain stacks enabled, when an account is removed from a target OU, stack resources in the account are retained. You can adjust the automatic deployment settings you specified when you created your stack set at any time.

Manage automatic deployments using the AWS CloudFormation console

https://console.aws.amazon.com/cloudformation.

Creating a stack set with service-managed permissions

Manage automatic deployments using the AWS CLI

Creating a stack set with service-managed permissions

Auto deployment example

When you enable automatic deployments, they are triggered when accounts are added to a target organization or OU, removed from a target organization or OU, or moved between target OUs.

For example, a stack set, `StackSet1`, targets an OU, `OU1`, in the `us-east-1` Region. A stack set, `StackSet2`, targets an OU, `OU2`, in the `us-east-1` Region. `OU1` contains an account, `AccountA`.

If we move `AccountA` from `OU1` to `OU2` with automatic deployments enabled, StackSets automatically runs a delete operation to remove the `StackSet1` instance from `AccountA` and queues a create operation that adds the `StackSet2` instance to `AccountA`. After the `StackSet1` instance is deleted, the `StackSet2` instance is created.