oracle-terraform-modules / terraform-oci-compute-instance

Terraform Module for creating Oracle Cloud Infrastructure compute instances
https://registry.terraform.io/modules/oracle-terraform-modules/compute-instance/oci/latest
Other
46 stars 62 forks source link

Error: data.oci_core_subnet.this: Provider doesn't support data source: oci_core_subnet #34

Closed bsmahara closed 3 years ago

bsmahara commented 4 years ago

Hi,

When terraform plan is executed then the below error comes

Error: data.oci_core_subnet.this: Provider doesn't support data source: oci_core_subnet

Please help resolve this .

Thanks, Bhabani

bsmahara commented 4 years ago

updated to Terraform v0.13.5 and dont see this issue but seems main.tf is to be changed and i get the below warning . Can someone share the edited main.tf .

The below needs to be changed count = "${length(var.subnet_ocids)}" subnet_id = "${element(var.subnet_ocids, count.index)}" as i get the below warning : Could you please help ?

bsmahara commented 4 years ago

image

kral2 commented 3 years ago

This is related to the new HCL syntax introduced with TF0.12. It will be fixed with the syntax update project, relates to issue #36

aorcl commented 3 years ago

@kral2 can we close this one now?