This message was deleted.
s
This message was deleted.
b
w
it does, thank you!
b
would love to see what you're building when you're done
w
just wrapping my infra into code, nothing fancy 😀
say, if I wanted to also add an ability to add a subnet into vpc, would it somewhat look like this?
Copy code
func NewVpc(ctx *pulumi.Context, name string, args Args, opts ...pulumi.ResourceOption) (*Vpc, error) {

func NewSubnet(ctx *pulumi.Context, *Vpc, name string, args Args, opts ...pulumi.ResourceOption) (*Vpc, error)
or should NewSubnet be a 'method' of vpc? i think i'm starting to get it by forming the question
b
NewVpc
is just the function that creates the resources in your component, it gets called when you instantiate your component