Skip to content

Commit

Permalink
Update pulumi-stacks.md (#12906)
Browse files Browse the repository at this point in the history
Improve the example for stack refs.
  • Loading branch information
jkodroff authored Sep 23, 2024
1 parent 334719e commit 97ba21c
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ The `pulumi-stacks` provider enables you to import Stack outputs from Pulumi int
## Example

```yaml
stack-outputs:
fn::open::pulumi-stacks:
stacks:
myNetworkingStack:
stack: myNetworkingProject/prod
myDataStack:
stack: myDataProject/prod
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
Expand Down

0 comments on commit 97ba21c

Please sign in to comment.