You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "sudo87 (via GitHub)" <gi...@apache.org> on 2026/08/10 10:29:27 UTC

Re: [I] data.cloudstack_instance filters not working [CS 4.21][CTP 0.6.0] [cloudstack-terraform-provider]

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: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org