Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors running terraform init #158

Open
schaeferka opened this issue Jan 27, 2025 · 0 comments
Open

Errors running terraform init #158

schaeferka opened this issue Jan 27, 2025 · 0 comments

Comments

@schaeferka
Copy link

From the config directory on my local machine, I run terraform init and get this result:

config % terraform init
Initializing the backend...
Initializing modules...
╷
│ Error: Provider type mismatch
│ 
│   on keys.tf line 44, in module "lz_keys":
│   44:     oci.home = oci.home
│ 
│ The local name "oci.home" in the root module represents provider "hashicorp/oci", but "oci.home" in module.lz_keys represents "oracle/oci".
│ 
│ Each provider has its own distinct configuration schema and provider types, so this module's "oci.home" can be assigned only a configuration for oracle/oci, which is not required by module.lz_keys.
╵
╷
│ Error: Provider type mismatch
│ 
│   on keys.tf line 64, in module "lz_service_connector_keys":
│   64:     oci.home = oci.home
│ 
│ The local name "oci.home" in the root module represents provider "hashicorp/oci", but "oci.home" in module.lz_service_connector_keys represents "oracle/oci".
│ 
│ Each provider has its own distinct configuration schema and provider types, so this module's "oci.home" can be assigned only a configuration for oracle/oci, which is not required by
│ module.lz_service_connector_keys.
╵
╷
│ Error: Provider type mismatch
│ 
│   on mon_service_connector.tf line 45, in module "lz_service_connector":
│   45:     oci.home = oci.home
│ 
│ The local name "oci.home" in the root module represents provider "hashicorp/oci", but "oci.home" in module.lz_service_connector represents "oracle/oci".
│ 
│ Each provider has its own distinct configuration schema and provider types, so this module's "oci.home" can be assigned only a configuration for oracle/oci, which is not required by
│ module.lz_service_connector.
╵
╷
│ Error: Unsupported Terraform Core version
│ 
│   on provider.tf line 24, in terraform:
│   24:   required_version = ">= 1.2.0, < 1.3.0"
│ 
│ This configuration does not support Terraform version 1.10.5. 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/lz_access_governance_policies/policies/providers.tf line 5, in terraform:
│    5:   required_version = "< 1.3.0"
│ 
│ Module module.lz_access_governance_policies (from git::https://github.com/oracle-quickstart/terraform-oci-cis-landing-zone-iam.git//policies?ref=v0.1.7) does not support Terraform version 1.10.5. 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/lz_compartments/compartments/providers.tf line 5, in terraform:
│    5:   required_version = "< 1.3.0"
│ 
│ Module module.lz_compartments (from git::https://github.com/oracle-quickstart/terraform-oci-cis-landing-zone-iam.git//compartments?ref=v0.1.7) does not support Terraform version 1.10.5. 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/lz_dynamic_groups/dynamic-groups/providers.tf line 5, in terraform:
│    5:   required_version = "< 1.3.0"
│ 
│ Module module.lz_dynamic_groups (from git::https://github.com/oracle-quickstart/terraform-oci-cis-landing-zone-iam.git//dynamic-groups?ref=v0.1.7) does not support Terraform version 1.10.5. 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/lz_groups/groups/providers.tf line 5, in terraform:
│    5:   required_version = "< 1.3.0"
│ 
│ Module module.lz_groups (from git::https://github.com/oracle-quickstart/terraform-oci-cis-landing-zone-iam.git//groups?ref=v0.1.7) does not support Terraform version 1.10.5. 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/lz_oke_clusters_policy/policies/providers.tf line 5, in terraform:
│    5:   required_version = "< 1.3.0"
│ 
│ Module module.lz_oke_clusters_policy (from git::https://github.com/oracle-quickstart/terraform-oci-cis-landing-zone-iam.git//policies?ref=v0.1.7) does not support Terraform version 1.10.5. 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/lz_policies/policies/providers.tf line 5, in terraform:
│    5:   required_version = "< 1.3.0"
│ 
│ Module module.lz_policies (from git::https://github.com/oracle-quickstart/terraform-oci-cis-landing-zone-iam.git//policies?ref=v0.1.7) does not support Terraform version 1.10.5. 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/lz_root_policies/policies/providers.tf line 5, in terraform:
│    5:   required_version = "< 1.3.0"
│ 
│ Module module.lz_root_policies (from git::https://github.com/oracle-quickstart/terraform-oci-cis-landing-zone-iam.git//policies?ref=v0.1.7) does not support Terraform version 1.10.5. 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/lz_services_policy/policies/providers.tf line 5, in terraform:
│    5:   required_version = "< 1.3.0"
│ 
│ Module module.lz_services_policy (from git::https://github.com/oracle-quickstart/terraform-oci-cis-landing-zone-iam.git//policies?ref=v0.1.7) does not support Terraform version 1.10.5. 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/lz_template_policies/policies/providers.tf line 5, in terraform:
│    5:   required_version = "< 1.3.0"
│ 
│ Module module.lz_template_policies (from git::https://github.com/oracle-quickstart/terraform-oci-cis-landing-zone-iam.git//policies?ref=v0.1.8) does not support Terraform version 1.10.5. 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/lz_top_compartment/compartments/providers.tf line 5, in terraform:
│    5:   required_version = "< 1.3.0"
│ 
│ Module module.lz_top_compartment (from git::https://github.com/oracle-quickstart/terraform-oci-cis-landing-zone-iam.git//compartments?ref=v0.1.7) does not support Terraform version 1.10.5. 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.

How do I fix these errors?

Steps to reproduce:

  1. cd to config folder
  2. Run terraform init

Note: Running terraform init in the pre-config folder works as expected and the resources are deployed correctly when running terraform apply in pre-config. The errors only occur in config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant