tall-monitor-77779
10/23/2018, 4:29 PMvpcId
returned when creating a cloud.Service
which is in service.cluster.network.vpcId
if I export service.cluster.network
I see the vpcId but I can’t for the life of me manage to get it in code to be able to use it to create other resources. Help!quick-action-34599
10/23/2018, 4:31 PMawait
?tall-monitor-77779
10/23/2018, 4:34 PMtall-monitor-77779
10/23/2018, 4:35 PMtall-monitor-77779
10/23/2018, 4:38 PMlet service = new cloud.Service(name, {
containers: {
nginx: {
image: "nginx",
memory: 2048,
ports: [
{ port: 80 },
],
},
},
replicas: 1
});
let disco = new aws.servicediscovery.PrivateDnsNamespace("test", {
description: "test",
name: "test",
vpc: service.cluster.network.vpcId.apply(v => v);
})
quick-action-34599
10/23/2018, 4:42 PMquick-action-34599
10/23/2018, 4:42 PMtall-monitor-77779
10/23/2018, 4:43 PMquick-action-34599
10/23/2018, 4:43 PMquick-action-34599
10/23/2018, 4:43 PM.apply(v => v)
? I'm doing similar stuff without using apply
. pulumi seems to know how to wait for outputs when necessarystocky-spoon-28903
10/23/2018, 4:44 PMtall-monitor-77779
10/23/2018, 4:44 PMtall-monitor-77779
10/23/2018, 4:44 PMexports
stocky-spoon-28903
10/23/2018, 4:45 PMvpcId
there will be a pulumi.Output<T>
, and the vpc
parameter for PrivateDnsNamespace should be a pulumi.Input<T>
, defined as (something like): T | Promise<T> | Output<T>
tall-monitor-77779
10/23/2018, 4:45 PMawsinfra.Network
to be able to get at the vpcId propertystocky-spoon-28903
10/23/2018, 4:45 PMtall-monitor-77779
10/23/2018, 4:46 PMquick-action-34599
10/23/2018, 4:46 PMawsinfra.Network.getDefault()
work? Services created by pulumi use the existing default I believetall-monitor-77779
10/23/2018, 4:47 PMquick-action-34599
10/23/2018, 4:47 PMtall-monitor-77779
10/23/2018, 4:53 PMtall-monitor-77779
10/23/2018, 4:54 PMMissing required property 'vpc'
quick-action-34599
10/23/2018, 5:03 PMservice.cluster
is interface CloudCluster
, which doesn't have a network
prop, afaict: https://pulumi.io/reference/pkg/nodejs/@pulumi/cloud-aws/#CloudClustertall-monitor-77779
10/23/2018, 5:23 PMawsinfra.Network
is passed and you can see it if you export the service.Cluster
quick-action-34599
10/23/2018, 5:23 PMtall-monitor-77779
10/23/2018, 5:57 PMtall-monitor-77779
10/23/2018, 5:57 PMstocky-spoon-28903
10/23/2018, 5:59 PMstocky-spoon-28903
10/23/2018, 5:59 PMorange-tailor-85423
10/23/2018, 8:16 PM