Open PeterDowdy opened 1 year ago
Having the same issue here, the cluster in our testing environment got deleted (probably a user mistake).
terraform plan
now fails with the same error mentioned above.
I had to delete the mounts from the state so that the cluster (and the mounts) could be re-created.
You can also pull the state, change the cluster ID in the mount resource, and then push it back.
The same issue happens when the mounting cluster is auto-deleted after 30 days from non-use as described in the docs.
The same issue happens when the mounting cluster is auto-deleted after 30 days from non-use as described in the docs.
Yes, it happened again and I realised that's what actually caused the issue for us in the first place.
I fixed the state and pinned that cluster to avoid further issues.
Configuration
Expected Behavior
The mount should re-create with the new cluster
Actual Behavior
The mount fails to create with this error message:
instance profile is required to re-create mounting cluster
. When I inspect the terraform state for the mount, it still has the ID of the old admin cluster. Since that cluster is gone and that ID is irretrievable, the mount keeps failing when it 400s while requesting the cluster by ID. It then ignores the cluster_id specified in the terraform and raises an error message.Steps to Reproduce
Terraform and provider versions
Terraform v1.3.6 on darwin_arm64
Debug Output
https://gist.github.com/PeterDowdy/aa7d860a64c593c1d1f3304c23e0109c
Important Factoids
The old cluster was created by a PAT, and the new cluster was created by a service user.