Closed MarcGueury closed 6 months ago
tfok2.zip Upload this file in OCI Resource Manager and it will fail...
This module is using features available in terraform starting with version 1.3.0. If you are looking for a deployment through ORM, you can use this source: https://github.com/robo-cap/terraform-oci-oke/tree/sav
module "oke" {
source = "git::https://github.com/robo-cap/terraform-oci-oke.git?ref=205e509"
...
}
The current latest Terraform version available for ORM is 1.2.0.
Thanks, forgot to say that there is a WA (thanks Alberto) it is to use a branch for 1.2 like this:
module "oke" {
source = "github.com/oracle-terraform-modules/terraform-oci-oke.git?ref=5.x-tf12&depth=1"
providers = { oci.home = oci.home }
tenancy_id = var.tenancy_ocid
compartment_id = var.compartment_ocid
# Identity
create_iam_resources = false
create_iam_tag_namespace = false
create_iam_defined_tags = false
use_defined_tags = false
...
Then it works perfectly.
Resolved in #907
Community Note
Description
The same works without OCI Resource Manager.
I am not able to use the module with Resource Manager due to 2 reasons: 1) when using the module as a reference to my yaml file. There is this error:
The local name "oci.home" in the root module represents provider hashicorp/oci", but ""oci.home"" in module.oke represents ""oracle/oci".
2) when downloading the full repository and applying it, there is this error:
-> Invalid Terraform version specified in the Terraform configuration file: >= 1.3.0. Update the configuration file to specify a supported Terraform version.
The max version of Resource Manager seems to be 1.2.x...
New or Affected Resource(s)
-
Potential Terraform Configuration
I can upload also a zip file that fails if it helps.