Skip to content

Commit

Permalink
Mention the pulumi-stacks provider in this overview. (#13291)
Browse files Browse the repository at this point in the history
* Mention the `pulumi-stacks` provider in this overview.

* Fix linter violation
  • Loading branch information
thoward authored Nov 9, 2024
1 parent b821d5f commit 0c40f95
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions content/docs/esc/integrations/infrastructure/pulumi-iac/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,20 @@ You can use ESC with [Automation API](/docs/using-pulumi/automation-api/) in [No
* `addEnvironments(...)`: Append environments to your Pulumi stack's [import](/docs/esc/environments/#using-environments-with-pulumi-iac) list.
* `listEnvironments()`: Retrieve a list of environments currently imported into your stack.
* `removeEnvironment(environment)`: Remove a specific environment from your stack's import list.

### Accessing Pulumi Stack outputs

You can also access [outputs](/docs/iac/concepts/inputs-outputs/#outputs) from [Pulumi IaC stacks](/docs/iac/concepts/stacks/) within an ESC environment using the [`pulumi-stacks` provider](/docs/esc/integrations/infrastructure/pulumi-iac/pulumi-stacks/).

```yaml
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}
```

0 comments on commit 0c40f95

Please sign in to comment.