Skip to content

DescribeStackResources

Source: src/AWS/CloudFormation/DescribeStackResources.ts

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

Bind this operation to a Stack to resolve the physical ids of the stack’s resources — e.g. look up a resource created by the template by its logical id from inside a function runtime. Provide the implementation with Effect.provide(AWS.CloudFormation.DescribeStackResourcesHttp).

const describeStackResources =
yield* AWS.CloudFormation.DescribeStackResources(stack);
const { StackResources } = yield* describeStackResources({
LogicalResourceId: "Param",
});
const physicalId = StackResources?.[0]?.PhysicalResourceId;