This message was deleted.
# golang
s
This message was deleted.
b
i believe that needs to be
ID()
g
Thanks, that works. Does that mean any output can be referenced by capitalizing it and using it as a function? I see no reference of this in the docs
b
i think this is a doc error, i’ll file an issue
g
It's the same case with Subnet, Security Group and probably more. The docs mentions
Id
but in usage, it is
ID()
b
all resources have an
ID()
it’s uppercase in Go
g
Guess it needs a mention in the docs. Honest feedback is that it is difficult to find certain things for adopting pulumi with Go. I was looking for the syntax to use a boolean input in Go and found it 5 mins later in a third party blog (
pulumi.Bool
)
b
appreciate the feedback, we definitely know we need to improve here
s
When creating a subnet and needing to reference the VPC ID, you should be able to just pass
vpc.ID()
to the subnet’s
VpcId
input and be done with it.