DescribeStackEvents
Source:
src/AWS/CloudFormation/DescribeStackEvents.ts
Runtime binding for the DescribeStackEvents operation (IAM action
cloudformation:DescribeStackEvents).
Bind this operation to a Stack to read its event history —
per-resource create/update/delete progress and failure reasons — from
inside a function runtime. Useful for deployment dashboards and failure
alerting. Provide the implementation with
Effect.provide(AWS.CloudFormation.DescribeStackEventsHttp).
Reading Stacks
Section titled “Reading Stacks”const describeStackEvents = yield* AWS.CloudFormation.DescribeStackEvents(stack);
const { StackEvents } = yield* describeStackEvents();const failures = (StackEvents ?? []).filter( (e) => e.ResourceStatus?.endsWith("_FAILED"),);