- 最新
- 投票最多
- 评论最多
I don't believe this capability exists yet, but based on this, is being actively worked on.
As a workaround, you could wrap the CFN template you're deploying in another template which simply has a single resource of an AWS::CloudFormation::Stack. In that resource you can define a Notification ARN where it will send SNS notifications. Subscribe a Lambda function to the SNS topic and every time it receives a message, it can check the status of the stack set and then take whatever action you want when it is finished.
Are you using AWS Organizations to manage your StackSets? You can configure SNS to allow any account in your organization to publish messages to a topic. https://aws.amazon.com/premiumsupport/knowledge-center/sns-topic-organization-accounts-publish/
Yes, we use Orgs. we make the accounts send an SNS after the individual stack is finished (as a custom resource in the stack) but we don't know when the StackSet is finished, as people can choose to onboard OUs instead of the entire Org.
This is now possible with CloudFormation StackSets now sending events notifications in Amazon EventBridge. EventBridge Rules can be created to get triggered based on StackSet creation/updation/deletion and based upon StackSet state/Stack Instance state/StackSet operation state which can trigger desired target(s) accordingly.
相关内容
- AWS 官方已更新 2 年前
Nice to know they are working on that. I will try the workaround you suggested, seems like a good idea. Thank you!