Posted On: Nov 14, 2022
Today, Amazon CloudFormation StackSets improves access to detailed information on stack instances for stack set operations. You can get the count of failed stack instances for stack set operations in DescribeStackSetOperation. Additionally, you can list and filter stack instances for stack set operations in ListStackInstances.
Customers use CloudFormation StackSets to provision and update stacks in multiple Amazon Web Services accounts and Regions in a single operation. However, a stack set does not provision and update stack instances to Amazon Web Services accounts in cases where accounts have same resources, accounts have missing IAM role dependencies, and more. Customers want to know the Amazon Web Services accounts in which StackSets did not provision and update stack instances, so that customers can re-deploy stack instances to these missed Amazon Web Services accounts. But customers have to wait for StackSets to complete operation before estimating the Amazon Web Services accounts that need re-deployment. With this launch, customers do not have to wait anymore. Customers can use DescribeStackSetOperation during a StackSet deployment to get the count of failed stack instances. Customers can use the new filtering option LastOperationID in ListStackInstances to list stack instances for a given stack set operation. For example, you can combine the status, region, and last operation ID filters in ListStackInstances to list all failed stack instances for cn-north-1 and cn-northwest-1. You can use this information to redeploy these failed stack instances.
You can use these features via Amazon Web Services Management Console, Amazon Web Services Command Line Interface, and Amazon Web Services Software Development Kit. These features are now available in the Amazon Web Services China (Beijing) Region, operated by Sinnet, and the Amazon Web Services China (Ningxia) Region, operated by NWCD. To learn more about these features, visit CloudFormation StackSets documentation.