Require google provider version ~> 1.1

* Require google provider plugin 1.1 or higher which includes fix:
https://github.com/terraform-providers/terraform-provider-google/issues/574
* Remove workaround which statically set the persistent disk name
* Original reasons for workaround in a97df839 or GH #34
This commit is contained in:
Dalton Hubble 2017-11-04 12:48:01 -07:00
parent 26a291aef4
commit a48dd9ebd8
3 changed files with 1 additions and 9 deletions

View File

@ -50,10 +50,6 @@ resource "google_compute_instance_template" "controller" {
boot = true boot = true
source_image = "${var.os_image}" source_image = "${var.os_image}"
disk_size_gb = "${var.disk_size}" disk_size_gb = "${var.disk_size}"
// Set explicit name to match the new default name set by the API.
// https://github.com/terraform-providers/terraform-provider-google/issues/574
device_name = "persistent-disk-0"
} }
network_interface { network_interface {

View File

@ -5,7 +5,7 @@ terraform {
} }
provider "google" { provider "google" {
version = "~> 1.0" version = "~> 1.1"
} }
provider "local" { provider "local" {

View File

@ -56,10 +56,6 @@ resource "google_compute_instance_template" "worker" {
boot = true boot = true
source_image = "${var.os_image}" source_image = "${var.os_image}"
disk_size_gb = "${var.disk_size}" disk_size_gb = "${var.disk_size}"
// Set explicit name to match the new default name set by the API.
// https://github.com/terraform-providers/terraform-provider-google/issues/574
device_name = "persistent-disk-0"
} }
network_interface { network_interface {