mirror of
https://github.com/ghndrx/GSP662.git
synced 2026-02-10 06:54:58 +00:00
add ephemeral external ip
This commit is contained in:
@@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user