From c1dcdecb14365e4f7ce19c317606df648a837467 Mon Sep 17 00:00:00 2001 From: Troy Howard Date: Thu, 7 Nov 2024 17:01:38 -0600 Subject: [PATCH 1/2] Mention the `pulumi-stacks` provider in this overview. --- .../infrastructure/pulumi-iac/_index.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/content/docs/esc/integrations/infrastructure/pulumi-iac/_index.md b/content/docs/esc/integrations/infrastructure/pulumi-iac/_index.md index 51676f337136..e38c7ba9ee88 100644 --- a/content/docs/esc/integrations/infrastructure/pulumi-iac/_index.md +++ b/content/docs/esc/integrations/infrastructure/pulumi-iac/_index.md @@ -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} +``` From 613647a75b0ef4b6bee97f04d20fd19983aefa49 Mon Sep 17 00:00:00 2001 From: Troy Howard Date: Fri, 8 Nov 2024 22:48:52 -0600 Subject: [PATCH 2/2] Fix linter violation --- .../docs/esc/integrations/infrastructure/pulumi-iac/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/esc/integrations/infrastructure/pulumi-iac/_index.md b/content/docs/esc/integrations/infrastructure/pulumi-iac/_index.md index e38c7ba9ee88..86d9689ac727 100644 --- a/content/docs/esc/integrations/infrastructure/pulumi-iac/_index.md +++ b/content/docs/esc/integrations/infrastructure/pulumi-iac/_index.md @@ -96,7 +96,7 @@ You can use ESC with [Automation API](/docs/using-pulumi/automation-api/) in [No ### 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/). +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: