freezing-sugar-24066
11/10/2021, 9:08 PMdata
block. I saw that this can be done by aws.ec2.getVpc()
. However, this returns a Promise<aws.ec2.GetVpcResult>
instead of a Vpc
(which has pulumi.Output<string>
properties) and the two objects are very different. Am I barking up the right tree, here?
I see the static Vpc.get()
method, but it has parameters I don’t know the meaning of, such as `id: pulumi.Input<pulumi.ID>`… what would I pass in there?
If I go down the getVpc()
route with the Promise, could I end up having any kind of race condition issue between the time the details of that VPC are fetched and the actual stack deploys?little-cartoon-10569
11/10/2021, 9:12 PMgetVpc()
. You won't get a Vpc object.resource
in Terraform, then you must import the VPC.Vpc.get()
, which is similar to getVpc
but uses the normal Pulumi classes. It's read-only though, so similar to a data
.freezing-sugar-24066
11/10/2021, 11:38 PMlittle-cartoon-10569
11/10/2021, 11:47 PMVpc.get()
or getVpc()
, either is good and they have very different APIs and returned objects.