Skip to content

DescribeStacks

Source: src/AWS/CloudFormation/DescribeStacks.ts

Runtime binding for the DescribeStacks operation (IAM action cloudformation:DescribeStacks).

Bind this operation to a Stack to read its live status, parameters, and template outputs from inside a function runtime — the classic service-discovery pattern of resolving endpoints/ARNs from a stack’s outputs. Provide the implementation with Effect.provide(AWS.CloudFormation.DescribeStacksHttp).

// init — bind the operation to the stack
const describeStacks = yield* AWS.CloudFormation.DescribeStacks(stack);
// runtime
const { Stacks } = yield* describeStacks();
const outputs = Stacks?.[0]?.Outputs ?? [];