mirror of
https://github.com/multipleof4/git.planetrenox.com.git
synced 2026-01-13 16:07:55 +00:00
Update main.tf
This commit is contained in:
@@ -20,13 +20,9 @@ resource "google_compute_firewall" "yunohost_allow" {
|
|||||||
target_tags = ["yunohost"]
|
target_tags = ["yunohost"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_compute_address" "static_ip" {
|
|
||||||
name = "yunohost-static-ip"
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "google_compute_instance" "yunohost" {
|
resource "google_compute_instance" "yunohost" {
|
||||||
name = "yunohost"
|
name = "yunohost"
|
||||||
machine_type = "e2-small"
|
machine_type = "e2-micro"
|
||||||
zone = "us-west1-a"
|
zone = "us-west1-a"
|
||||||
tags = ["yunohost"]
|
tags = ["yunohost"]
|
||||||
boot_disk {
|
boot_disk {
|
||||||
@@ -38,9 +34,7 @@ resource "google_compute_instance" "yunohost" {
|
|||||||
}
|
}
|
||||||
network_interface {
|
network_interface {
|
||||||
network = "default"
|
network = "default"
|
||||||
access_config {
|
access_config {}
|
||||||
nat_ip = google_compute_address.static_ip.address
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
metadata = {
|
metadata = {
|
||||||
startup-script = file("${path.module}/startup.sh")
|
startup-script = file("${path.module}/startup.sh")
|
||||||
@@ -51,4 +45,3 @@ resource "google_compute_instance" "yunohost" {
|
|||||||
output "external_ip" {
|
output "external_ip" {
|
||||||
value = google_compute_instance.yunohost.network_interface[0].access_config[0].nat_ip
|
value = google_compute_instance.yunohost.network_interface[0].access_config[0].nat_ip
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user