Not working with terraform 0.13.0
alvarolorentedev opened this issue · 7 comments
Having issue due the latest version of terraform to integrate this module
on .terraform/modules/iap_bastion.instance_template/terraform-google-vm-3.0.0/modules/instance_template/versions.tf line 18, in terraform:
18: required_version = "~> 0.12.6"
Module module.iap_bastion.module.instance_template (from
terraform-google-modules/vm/google//modules/instance_template) does not
support Terraform version 0.13.0. To proceed, either choose another supported
Terraform version or update this version constraint. Version constraints are
normally set for good reason, so updating the constraint may lead to other
errors or unexpected behavior.
Error: Unsupported Terraform Core version
on .terraform/modules/iap_bastion.instance_template/terraform-google-vm-3.0.0/modules/instance_template/versions.tf line 18, in terraform:
18: required_version = "~> 0.12.6"
Module module.iap_bastion.module.instance_template (from
terraform-google-modules/vm/google//modules/instance_template) does not
support Terraform version 0.13.0. To proceed, either choose another supported
Terraform version or update this version constraint. Version constraints are
normally set for good reason, so updating the constraint may lead to other
errors or unexpected behavior.```
Thank you raising this concern. This should be fixed in v2.8.0 due to #53
Still seeing the issue with the instance_template here:
Initializing modules...
Error: Unsupported Terraform Core version
on .terraform/modules/iap_bastion.instance_template/modules/instance_template/versions.tf line 18, in terraform:
18: required_version = "~> 0.12.6"
Module module.iap_bastion.module.instance_template (from
terraform-google-modules/vm/google//modules/instance_template) does not
support Terraform version 0.13.2. To proceed, either choose another supported
Terraform version or update this version constraint. Version constraints are
normally set for good reason, so updating the constraint may lead to other
errors or unexpected behavior.
This would appear (to me as a novice terraform user) to be coming from the lines below in main.tf
module "instance_template" {
source = "terraform-google-modules/vm/google//modules/instance_template"
version = "~> 3.0"
The instance_template submodule versions.tf appears to have been updated in branches 4.0.1 and 5.0.0, but it does not appear any releases (tags) have been updated to allow terraform 0.13.
yes the version should be
terraform {
required_version = ">= 0.12.6, <4.0"
required_providers {
google = ">= 2.7, <4.0"
}
}
@sdowns you are correct that this is an upstream issue. However, the most recent release of theterraform-google-vm
(4.0.0) still does not support 13.0. I've opened terraform-google-modules/terraform-google-vm#114 there and will work on fixing it momentarily
I see you've closed the issue @onetwopunch. Have you verified that they all the modules work with version 13
I closed the issue since it was already fixed in master just hadn't been released yet. I triggered the release of version 5.0 and have now created #55 which should hopefully fix it.
thanks @onetwopunch