This message was deleted.
# golang
s
This message was deleted.
b
what do you have so far?
c
I've created an s3bucket a vpc and 2 subnets but I'm not sure how to specify then as public or private. I am also new to aws as well
b
have you considered using awsx? it’ll drastically reduce the amount of work you have to do 🙂 https://github.com/jaxxstorm/pulumi-examples/blob/main/go/aws/vpc_eks/vpc/main.go
c
I would totally consider that, is there any resource you could link me to so that i understand what that is? thanks for the help so much
b
c
github.com/pulumi/pulumi-awsx/sdk/go/awsx/ec2 as an import from the example you sent no longer exists
b
yes it does? what issue are you getting?
s
While I don’t have any examples that specifically show creating public and private subnets, you may find some of my later Pulumi articles useful: https://blog.scottlowe.org/tags/pulumi/ (I switched to Go with Pulumi in June 2020.)
f
Just keep in mind that the difference between a public and private subnet is just that public subnets have routing to the internet gateway of the vpc. Thery have inbound/outbound traffic from/to internet via the IGW (internet gateway) while a private subnet does not. Private subnets usually have outbound route to the internet through a NAT gateway.
👆🏻 1
c
thank you all this has been valuable information
s
Let us know if you have any additional questions!