Open brodster2 opened 3 months ago
Hello brodster2, thanks for reporting. I agree there's a bug and we'll have this fixed in the next release.
Hi brodster2, can you please test https://github.com/oci-landing-zones/terraform-oci-modules-orchestrator/tree/release-2.0.4? It has the fix. In a few days we'll be merging this candidate release into main.
Fix available in v0.6.9.
Hi brodster2, can you please test https://github.com/oci-landing-zones/terraform-oci-modules-orchestrator/tree/release-2.0.4? It has the fix. In a few days we'll be merging this candidate release into main.
Hi @andrecorreaneto, thanks for the quick response, we attempted to test that branch but ran across this error:
│ Error: Experiment has concluded
│
│ on providers.tf line 58, in terraform:
│ 58: experiments = [module_variable_optional_attrs]
│
│ Experiment "module_variable_optional_attrs" is no longer available. The
│ final feature corresponding to this experiment differs from the
│ experimental form and is available in the Terraform language from Terraform
│ v1.3.0 onwards.
since that branch requires terraform versions >=1.3.0 but still has the module_variable_optional_attrs
experiment set. We tried with Terraform versions 1.3.x and 1.5.x
https://github.com/hashicorp/terraform/issues/31931 has some details on it
Please retry, just pushed the fix. Sorry about that.
Hi @andrecorreaneto, we had to create the cross connects manually to get the LOAs to our provider. But using the branch https://github.com/oci-landing-zones/terraform-oci-modules-orchestrator/tree/release-2.0.4 we had no issues importing them into state with no changes shown. So I'm happy to call this issue closed. Thanks for your quick fix.
Hello 👋 We are using the oracle oci-landing-zones/terraform-oci-modules-orchestrator to setup our OCI LZ. We've run into a problem when trying to create cross connects as part of cross connect groups, an example of our configuration:
This gets sent to the networking module https://github.com/oci-landing-zones/terraform-oci-modules-orchestrator/blob/17f621d5efb08577cd105859fbf05d4cdeac9376/networking.tf#L8
We have no problem when creating just the cross connect groups, the issue comes when the
oci_core_cross_connect
is created and assigned to aoci_core_cross_connect_group
here which results in the error:Which makes sense, because the cross connect group attribute will be
oci_core_cross_connect_group.these[FC-UK3-Equinix-LD6]
but the code on line 54 of cross-connects.tf is looking foroci_core_cross_connect_group.these[FC-UK3-Equinix-LD6-1]
which doesn't exist because that is the unique key of the cross connect. I think line 54 needs to be updated from:to: