salmon-leather-17096
10/10/2023, 9:55 PMconst inRegionJumpVPC = getVpcOutput({ name: "foo" });
//Somehow Block here
if (inRegionJumpVPC) {
const vpcPeeringConnection = new VpcPeeringConnection(
`${clusterId}-jumpVpc-peering`,
{
I know this would be possible with `async`/`await` I’m specifically curious about outputs. The ultimate goal is conditional resource creation in a ComponentResourceincalculable-motherboard-92742
10/11/2023, 2:16 AMsalmon-account-74572
10/11/2023, 4:35 AMdependsOn
, more details at https://www.pulumi.com/docs/concepts/options/dependson/salmon-leather-17096
10/11/2023, 3:56 PMdependsOn
, more details at https://www.pulumi.com/docs/concepts/options/dependson/
unfortunately the vpc in question is not created by pulumi so dependencies can not be used here (get
function results can not be used as dependencies ) @salmon-account-74572
> Hi Brady, take a look at [apply](https://www.pulumi.com/docs/concepts/inputs-outputs/#apply) to create dependencies.
Im not sure how apply can be used to create dependencies here @calm-airplane-91573, all values accessible in an apply block would be strings anot not resourcessalmon-account-74572
10/11/2023, 4:56 PMget
function to look up an existing VPC.