terraform-provider-vra7
terraform-provider-vra7 copied to clipboard
Terraform returns "The resource cannot be found" when vRA deployment succeeds
vRA 7.x version 7.5.0 Terraform version 0.12.7 terraform-provider-vra7 plugin version 0.4.1
Describe the bug I tried to create Linux machines with a vRA XaaS. This XaaS triggers a first workflow (with the ID "1"). It is used to instantiate resourceActions to create every needed resources for the machine. It also instantiates another blueprint called "Linux" triggering a second workflow (with the ID "2") which aims to create the linux machine.
Terraform --> vRA XaaS blueprint --> 1st vRO workflow --> Linux blueprint --> 2nd vRO workflow
Terraform deployment is based on ID "1". When it ends, it makes the following API call to retrieve the machine's information: GET https://{vra}/catalog-service/api/consumer/requests/{ID_1}/resourceViews
In my case, all the machine information are attached to ID "2", so at the end of the deployment, Terraform returns the error:
Error: The resource cannot be found
on main.tf line 8, in resource "vra7_deployment" "Test-VM":
8: resource "vra7_deployment" "Test-VM" {
Expected behavior Would it be possible to allow Terraform to get resources' information from another ID than the one given in the first place for the deployment?