https://pulumi.com logo
Title
c

crooked-student-89656

10/17/2022, 9:09 PM
hello i am very new to pulumi and also go, is there someone that could possibly provide some help with creating private and public subnets in go?
b

billowy-army-68599

10/17/2022, 9:13 PM
what do you have so far?
c

crooked-student-89656

10/17/2022, 9:19 PM
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

billowy-army-68599

10/17/2022, 9:21 PM
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

crooked-student-89656

10/17/2022, 9:26 PM
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

billowy-army-68599

10/17/2022, 9:27 PM
c

crooked-student-89656

10/17/2022, 9:31 PM
github.com/pulumi/pulumi-awsx/sdk/go/awsx/ec2 as an import from the example you sent no longer exists
b

billowy-army-68599

10/17/2022, 9:35 PM
yes it does? what issue are you getting?
s

salmon-account-74572

10/17/2022, 11:14 PM
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

flaky-arm-38472

10/18/2022, 5:20 AM
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.
c

crooked-student-89656

10/18/2022, 4:52 PM
thank you all this has been valuable information
s

salmon-account-74572

10/18/2022, 4:55 PM
Let us know if you have any additional questions!