https://pulumi.com logo
#getting-started
Title
# getting-started
b

bright-sandwich-93783

06/26/2021, 4:06 AM
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()
??
4 Views