Use CloudFormation StackSets for Multiple Accounts in an AWS Organization

Use CloudFormation StackSets for Multiple Accounts in an AWS Organization


Related discussions:

I’ve been waiting for this to be released for a lot of time, can’t wait to try it out.

It will help a lot rolling out my AutoSpotting tool to entire Organizations or OUs for a bunch of my largest users.

Huge thanks to the Cloudformation team!

Why is there the restriction deploying nested stacks when using Service-Managed Permissions? We use a single stack with multiple nested stacks when deploying our baseline to all accounts. Otherwise a single stack would be very large.

Edit: After a bit of discussion I’ve realised it probably has to do with the role needing to be able to access the S3 buckets where the nested templates would be stored. Is there a plan to get around this in the future?

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-getting-started-create.html#stacksets-orgs-associate-stackset-with-org

I wonder what the process will look like to import existing resources created before this feature existed. Could be pretty hard to migrate to this.

I guess Landing Zone accomplishes the same thing, but it’s nice to be able to deploy changes faster and not have to wait for the pipeline to finish which takes ages!

Which doesn’t make sense because all you have to do is give the bucket permissions to the root org Id

CloudFormation FTW

Thank you for releasing this, trying it out now.

Hmm, tell me more about the use case you have in mind. Importing resources is kind of a different use case for us.

For the time being, nested stacks is currently restricted because it isn’t compatible with the new permission model. We look at the template and your current permissions in your account to ensure the deployment can succeed, but we don’t have enough info about permissions in other accounts before the deployment starts. I don’t think the issue has to do with the s3 bucket access specifically, but because of the permission model, it might be related.

Is there any plan to increase the amount of OUs we can apply StackSets to? The current limit of 10 OUs is pretty low, especially for Control Tower customers who cannot use nested OUs.