Skip to content

Default JX cluster provisioning fails #205

@shuknk8s

Description

@shuknk8s

Followed the documentation below on README.md to spin up a default jx cluster on GKE with the content of the main.tf provided but the terraform version 1.0.3 installed on my ubuntu laptop failed to initialize

Cluster provisioning
A default Jenkins X ready cluster can be provisioned by creating a file main.tf in an empty directory with the following content:

module "jx" {
source = "jenkins-x/jx/google"

gcp_project = ""
}

output "jx_requirements" {
value = module.jx.jx_requirements
}

Below is the terraform version and the error

  jx-cluster-provisioning  terraform version
Terraform v1.0.3
on linux_amd64

Error on terraform module init

Initializing modules...

│ Warning: Version constraints inside provider configuration blocks are deprecated

│ on .terraform/modules/jx/main.tf line 15, in provider "google":
│ 15: version = ">= 3.46.0"

│ Terraform 0.13 and earlier allowed provider version constraints inside the provider configuration block, but that is now deprecated and will be removed in a future
│ version of Terraform. To silence this warning, move the provider version constraint into the required_providers block.

│ (and 7 more similar warnings elsewhere)


│ Error: Unsupported Terraform Core version

│ on .terraform/modules/jx/main.tf line 7, in terraform:
│ 7: required_version = ">= 0.12.0, < 0.15"

│ Module module.jx (from jenkins-x/jx/google) does not support Terraform version 1.0.3. 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.


│ Warning: Version constraints inside provider configuration blocks are deprecated

│ on .terraform/modules/jx/main.tf line 15, in provider "google":
│ 15: version = ">= 3.46.0"

│ Terraform 0.13 and earlier allowed provider version constraints inside the provider configuration block, but that is now deprecated and will be removed in a future
│ version of Terraform. To silence this warning, move the provider version constraint into the required_providers block.

│ (and 7 more similar warnings elsewhere)


│ Error: Unsupported Terraform Core version

│ on .terraform/modules/jx/main.tf line 7, in terraform:
│ 7: required_version = ">= 0.12.0, < 0.15"

│ Module module.jx (from jenkins-x/jx/google) does not support Terraform version 1.0.3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions