Integrate AWS CloudFormation StackSets for AWS Organizations as part of `cdk deploy`
See original GitHub issueI’d like to be able to configure Stacks to be part of a StackSet that is deployed to my AWS Organization.
Use Case
I want to make use of CloudFormation features provided by the AWS team rather than attempting to roll my own CodePipeline to address the rollout of CloudFormation templates generated from CDK.
Proposed Solution
const stackSet = new cloudformation.StackSet(this, 'MyStackSet', {
permissionModel: 'SERVICE_MANGED',
autoDeployment: true,
retainStacksOnAccountRemoval: true,
deploymentTargets: {
organizationalUnitIds: ["ou-rcuk-1x5j1lwo", "ou-rcuk-slr5lh0a"]
},
regions: ["eu-west-1"]
});
const stack = new cdk.Stack(app, 'MultipleAccountsStack');
stackSet.add(stack);
This is a 🚀 Feature Request
Issue Analytics
- State:
- Created 4 years ago
- Reactions:44
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Bootstrapping multiple AWS accounts for AWS CDK using ...
Once the integration has been configured, the Organizations management account will have access to deploy StackSet stacks to any account that ...
Read more >AWS CloudFormation StackSets and AWS Organizations
AWS CloudFormation StackSets enables you to create, update, or delete stacks across multiple AWS accounts and AWS Regions with a single operation.
Read more >Use AWS CloudFormation StackSets for Multiple Accounts in ...
Today, we are simplifying the use of CloudFormation StackSets for customers managing multiple accounts with AWS Organizations.
Read more >class CfnStackSet (construct) · AWS CDK
The AWS::CloudFormation::StackSet enables you to provision stacks into AWS ... the IAM roles required to deploy to accounts managed by AWS Organizations ....
Read more >StackSets concepts - AWS CloudFormation
With service-managed permissions, you can deploy stack instances to accounts managed by AWS Organizations. Using this permissions model, you don't have to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Having this would be a nice feature! I ended up creating a
StackSet
construct with custom resources. I believe CDK will also have to implement something similar (i.e. consume Cloudformation stack set API directly) to add this feature…I can see how the above works 👍. How does it differ to using
new cdk.CfnStackSet
(plus a couple of hack lines) like here? https://github.com/aws/aws-cdk-rfcs/issues/66#issuecomment-754599325