1. Docs
  2. Secrets & Configuration
  3. Integrations
  4. Infrastructure
  5. Pulumi IaC
  6. pulumi-stacks

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

    PropertyTypeDescription
    stacksmap[string]PulumiStackA map of names to stacks to get outputs from. The names contains all outputs from the stack.

    PulumiStack

    PropertyTypeDescription
    stackstringThe 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.