sudo87 commented on issue #266:
URL:
https://github.com/apache/cloudstack-terraform-provider/issues/266#issuecomment-5238969863
@chrxmvtik looks like this isn’t a regression. I was able to reproduce the
same issue on v0.5.0.
The root cause seems to be that the VM is created with project =
var.project, but the data source doesn’t support project and calls
ListVirtualMachines() without projectid. So the project VM never makes it into
the list, and the filter has nothing to match. The regex error is a bit
misleading.
```
data.cloudstack_instance.controlplane[0]: Reading...
╷
│ Error: No instance is matching with the specified regex
│
│ with data.cloudstack_instance.controlplane[0],
│ on main.tf line 47, in data "cloudstack_instance" "controlplane":
│ 47: data "cloudstack_instance" "controlplane" {
│
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]