Hi all! Day 1 Pulumi user here. Very nooby Go/AW...
# getting-started
b
Hi all! Day 1 Pulumi user here. Very nooby Go/AWS question / potential documentation error: Pulumi VPC Resource is documented to have an
Id
output property. However, when making a vanilla
vpc, err := ec2.NewVpc(ctx, "staging-vpc", &ec2.VpcArgs{})
call, and trying to access the
Id
output property of
vpc
, I am getting a
vpc.Id undefined (type *ec2.Vpc has no field or method Id)
. How can I access the Id property of the newly created VPC object, and how should I interpret the documentation going forward?
as a follow up, why is there an ID() method on the *Vpc returned from
NewVpc()
but an
Id
field on the
LookupVpcResult
from
LookupVpc()
??