cloudfoundry / bosh-bootloader

Command line utility for standing up a BOSH director on an IAAS of your choice.
Apache License 2.0
178 stars 180 forks source link

Enable NAT Gateway for GCP #586

Closed jochenehret closed 11 months ago

jochenehret commented 1 year ago
jochenehret commented 1 year ago

I've tested this on a bbl environment with ephemeral_external_ip: false. Deploying CF with bosh deploy finishes successfully. The VMs now only have internal IPs from the 10.0.0.0/16 subnet. Pushing an app however fails because the buildpack cannot be downloaded. Running bbl up again creates the NAT gateway and a router and then outgoing traffic is enabled again. When this change is integrated into bosh-bootloader, we can update the bosh-deployment cloud-config: https://github.com/cloudfoundry/bosh-deployment/blob/10d4205cb6deed266afcd23fa1b66e0c08296254/gcp/cloud-config.yml#L41

Note that I've tested this as a separate Terraform file bbl-config/terraform/nat-gateway.tf.

jochenehret commented 1 year ago

I wasn't sure where to put this... but as indeed most network resources are defined in bosh_director.tf, I'll move it.