https://pulumi.com logo
Title
r

red-football-97286

06/24/2021, 10:01 AM
Trying to get the VPC value with Go, what am I doing wrong?
vpc, err *:=* ec2.GetVpc(ctx, "DefaultVPC", pulumi.IDInput(vpc*-123456*))
b

broad-dog-22463

06/24/2021, 10:07 AM
You got any info on the error message you are getting?
Oh wait, you are trying to “Lookup” the existing default vpc right?
This will work @red-football-97286
t := true vpc, err := ec2.LookupVpc(ctx, &ec2.LookupVpcArgs{Default: &t}) if err != nil { return err }
Lookup vpc is the data source you want here
r

red-football-97286

06/24/2021, 10:10 AM
Arrrr...thanks Paul. Yes looking up the VPC to pass to another function.