Sha256: 484ddb5c45a45a50309952282edb2727d51a475e396e7a4bb99d89ef90412f10

Contents?: true

Size: 950 Bytes

Versions: 4

Compression:

Stored size: 950 Bytes

Contents

provider "google" {
  credentials = "${file("service_account.json")}"
  region = "asia-northeast1"
}

resource "google_compute_instance" "gce-host-web" {
  name         = "gce-host-web"
  machine_type = "f1-micro"
  zone         = "asia-northeast1-a"

  disk {
    image = "ubuntu-1404-trusty-v20161020"
  }

  network_interface {
    network = "default"
    access_config {
      # Ephemeral IP
    }
  }

  metadata {
    roles = "foo,web:test:foo:bar:baz"
    service = "gce-host"
    status = "reserve"
    tags = "standby"
  }
}

resource "google_compute_instance" "gce-host-db" {
  name         = "gce-host-db"
  machine_type = "f1-micro"
  zone         = "asia-northeast1-a"

  disk {
    image = "ubuntu-1404-trusty-v20161020"
  }

  network_interface {
    network = "default"
    access_config {
      # Ephemeral IP
    }
  }

  metadata {
    roles = "foo,db:test"
    service = "gce-host"
    status = "active"
    tags = "master"
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gce-host-0.5.6 terraform.tf
gce-host-0.5.5 terraform.tf
gce-host-0.5.4 terraform.tf
gce-host-0.5.3 terraform.tf