Trying to get the VPC value with Go, what am I doi...
# general
r
Trying to get the VPC value with Go, what am I doing wrong?
vpc, err *:=* ec2.GetVpc(ctx, "DefaultVPC", pulumi.IDInput(vpc*-123456*))
b
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
Arrrr...thanks Paul. Yes looking up the VPC to pass to another function.