add ephemeral external ip

This commit is contained in:
gregory hendrickson
2023-03-15 16:32:25 -07:00
parent cd4f21579b
commit c38153c178

View File

@@ -17,6 +17,10 @@ resource "google_compute_instance" "backend" {
network_interface { network_interface {
network = "default" network = "default"
access_config {
// Assign a public (external) IP address to the instance
nat_ip = "ephemeral"
}
} }
} }
@@ -38,5 +42,9 @@ resource "google_compute_instance" "frontend" {
network_interface { network_interface {
network = "default" network = "default"
access_config {
// Assign a public (external) IP address to the instance
nat_ip = "ephemeral"
}
} }
} }