Skip to content

Instantly share code, notes, and snippets.

@mynameisameed
Last active August 18, 2022 04:12
Show Gist options
  • Save mynameisameed/42763d3f6581cfede3632c82012f2eab to your computer and use it in GitHub Desktop.
Save mynameisameed/42763d3f6581cfede3632c82012f2eab to your computer and use it in GitHub Desktop.
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 {
}
}
@anudishu
Copy link

anudishu commented Aug 18, 2022

minor corrections. please close the curly brase of the resource in the code {} :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment