pulumi-stacks
The pulumi-stacks provider enables you to import stack outputs from Pulumi into your environment. This includes stacks updated via the Pulumi CLI as well as stacks whose Terraform state is stored in Pulumi Cloud — Terraform root module outputs are mapped to stack outputs and accessible here with no additional tokens or credentials required.
Example
values:
stackRefs:
fn::open::pulumi-stacks:
stacks:
vpcInfra:
stack: vpc-infra/dev
pulumiConfig:
vpcId: ${stackRefs.vpcInfra.vpcId}
publicSubnetIds: ${stackRefs.vpcInfra.publicSubnetIds}
privateSubnetIds: ${stackRefs.vpcInfra.privateSubnetIds}
Inputs
| Property | Type | Description |
|---|---|---|
stacks | map[string]PulumiStack | A map of names to stacks to get outputs from. The names contains all outputs from the stack. |
PulumiStack
| Property | Type | Description |
|---|---|---|
stack | string | The project-qualified name of the stack to get outputs for, e.g. myProject/dev. |
Outputs
The pulumi-stacks provider returns a map of names to raw output values for the specified stacks.
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.