Skip to content

Instantly share code, notes, and snippets.

@Callonski
Created July 19, 2020 07:36
Show Gist options
  • Save Callonski/1bda0c1348c6fb4fdeea7a7d0e9959d2 to your computer and use it in GitHub Desktop.
Save Callonski/1bda0c1348c6fb4fdeea7a7d0e9959d2 to your computer and use it in GitHub Desktop.
resource "google_compute_instance_group" "eu-elastic-ig-zone-d" {
name = "eu-elastic-ig-zone-d"
network = google_compute_network.my-elastic-network.self_link
instances = [
google_compute_instance.my-elastic-instance-1.self_link,
google_compute_instance.my-elastic-instance-2.self_link,]
zone = var.region_zone_d
}
resource "google_compute_instance_group" "eu-elastic-ig-zone-c" {
name = "eu-elastic-ig-zone-c"
network = google_compute_network.my-elastic-network.self_link
instances = [
google_compute_instance.my-elastic-instance-3.self_link]
zone = var.region_zone_c
}
resource "google_compute_instance_group" "eu-kibana-ig-zone-d" {
name = "eu-kibana-ig-zone-d"
network = google_compute_network.my-elastic-network.self_link
instances = [google_compute_instance.my-elastic-kibana.self_link]
named_port {
name = "kibana"
port = 8080
}
zone = var.region_zone_d
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment