Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCP gateway terraform example w/ cloud nat #3940

Closed
jamilbk opened this issue Mar 5, 2024 · 2 comments
Closed

GCP gateway terraform example w/ cloud nat #3940

jamilbk opened this issue Mar 5, 2024 · 2 comments
Assignees
Labels
area/devops terraform and infrastructure-related issues kind/docs Improvements or updates to documentation kind/feedback Issue created as a direct result of customer feedback

Comments

@jamilbk
Copy link
Member

jamilbk commented Mar 5, 2024

Requested by customer

@jamilbk jamilbk added area/devops terraform and infrastructure-related issues kind/feedback Issue created as a direct result of customer feedback kind/docs Improvements or updates to documentation labels Mar 5, 2024
@jamilbk jamilbk self-assigned this Mar 5, 2024
@AndrewDryga
Copy link
Collaborator

AndrewDryga commented Mar 5, 2024

@jamilbk just wanted to clarify what is the use case for showing examples for Google Cloud itself? Because Cloud Nat is just one of many VPC components, it should not matter how you set the VPC up as long as we can reach the gateway, so I'm not sure if we need to maintain a library of ways to deploy it.

P.S.: I believe we are already running our gateways behind cloud nat on production: https://github.com/firezone/firezone/blame/main/terraform/modules/google-cloud-vpc/main.tf#L30

@jamilbk
Copy link
Member Author

jamilbk commented Mar 5, 2024

Use case is the 1.0 version of this: https://www.firezone.dev/docs/user-guides/use-cases/nat-gateway

Customer wants all gateways in a VPC to egress out of a single static IP to use for whitelisting to other services/clients in different clouds or networks. It's a pretty common one (why we published that docs article above)

The advantage in 1.0 is the scalability -- you can deploy more gateways for more availability

Yeah I was planning to use our prod deployment as a starting point, but then add network creation, cloud NAT to achieve the above use case with fewer TF inputs.

See https://docs.google.com/document/d/1_CJ6aHlt0h1ZKlBRE5snjGWEXu1V1sZvzkpftR1-2Xc/edit for more info

@jamilbk jamilbk closed this as completed Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devops terraform and infrastructure-related issues kind/docs Improvements or updates to documentation kind/feedback Issue created as a direct result of customer feedback
Projects
None yet
Development

No branches or pull requests

2 participants