https://pulumi.com logo
#aws
Title
# aws
g

gifted-gigabyte-53859

11/27/2023, 6:57 AM
Is it possible to route a private subnet through a NAT Gateway to an IGW using the crosswalk
api-gateway
provider? Or will I have to create all the resources manually?
b

brave-planet-10645

11/28/2023, 7:10 AM
So you want to go
private subnet -> NAT gateway -> IGW
? Where does the api gateway fit in?
But yes if you use the vpc resource that you linked to, if you add in a private subnet (https://www.pulumi.com/registry/packages/awsx/api-docs/ec2/vpc/#subnetspecs_nodejs) then you can use the natgateway input to create natgateways. Then we do all the set up for you
g

gifted-gigabyte-53859

11/29/2023, 7:19 AM
Hi @brave-planet-10645, thanks for your help. It turns out there is actually no explicit linkage required between a NAT gateway and IGW in AWS. It 'just works'.
Also my mistake I meant the crosswalk vpc provider, not
api-gateway
that was a typo. Anyway, it's all working. Thank you