Skip to content

Commit

Permalink
Merge pull request #3 from leeleelou/92306
Browse files Browse the repository at this point in the history
feat(google): upgrade provider version to support 0.14
  • Loading branch information
leeleelou authored Jan 4, 2022
2 parents 91d2fe0 + 138a740 commit 62b879e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@
* limitations under the License.
*/

provider "google-beta" {
version = ">= 2.0.0"
terraform {
required_version = "~> 0.14.10"
required_providers {
google-beta = {
source = "hashicorp/google-beta"
version = "~> 3.64.0"
}
}
}

###############
Expand Down Expand Up @@ -125,7 +131,7 @@ resource "google_compute_instance_template" "default" {
# scheduling must have automatic_restart be false when preemptible is true.
scheduling {
preemptible = var.preemptible
automatic_restart = ! var.preemptible
automatic_restart = !var.preemptible
on_host_maintenance = "MIGRATE"
}

Expand Down

0 comments on commit 62b879e

Please sign in to comment.