terraform-google-modules / terraform-google-cloud-datastore

Manages Datastore
https://registry.terraform.io/modules/terraform-google-modules/cloud-datastore/google
Apache License 2.0
22 stars 33 forks source link

Add support for Terraform v1.0 #28

Closed PaulinaMoreno closed 2 years ago

PaulinaMoreno commented 2 years ago

TL;DR

Hi, I'm trying to deploy the simple_example and when I run "terraform init" I have the next error:

`Error: Invalid reference from destroy provisioner on ../../main.tf line 37, in resource "null_resource" "cloud-datastore-indices": 37: command = "${path.module}/scripts/destroy-indexes.sh '${var.project}' '${local.null_index_path_file}'"

Destroy-time provisioners and their connection configurations may only reference attributes of the related resource, via 'self', 'count.index', or 'each.key'.

References to other resources during the destroy phase can cause dependency cycles and interact poorly with create_before_destroy.`

Expected behavior

No response

Observed behavior

No response

Terraform Configuration

None

Terraform Version

Terraform v1.0.6
on darwin_amd64

Additional information

I suppose that the error is related to the version of terraform and how data in reference in Terraform 0.13+.

apeabody commented 2 years ago

Hi @PaulinaMoreno Thanks for reaching out! It appears there are several updates that need to be addressed to support the newer Terraform versions. I hope to look at them in the next few weeks:

25

26