Last active
August 18, 2022 04:12
-
-
Save mynameisameed/42763d3f6581cfede3632c82012f2eab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "google_compute_instance" "web" { | |
name = "webserver" | |
machine_type = "f1-micro" | |
tags = ["http-server"] | |
boot_disk { | |
initialize_params { | |
image = "debian-cloud/debian-9" | |
} | |
} | |
metadata_startup_script = file("./apache2.sh") | |
scheduling { | |
preemptible = true | |
automatic_restart = false | |
} | |
network_interface { | |
network = "default" | |
access_config { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
minor corrections. please close the curly brase of the resource in the code {} :)