chrxmvtik opened a new issue, #266:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/266
Hi, recently moved to terraform provider v0.6.0 and wanted to obtain IP
address of instance nic.
I created instances using resource - works fine.
```hcl
resource "cloudstack_instance" "controlplane" {
count = var.controlplane_count
name = "${var.cluster_name}-control-${count.index + 1}"
service_offering = "CS"
boot_mode = "legacy"
template = cloudstack_template.talos.id
zone = var.zone
project = var.project
uefi = true
network_id = cloudstack_network.talos.id
expunge = true
root_disk_size = 200
}
```
Then I tried to obtain instance details using datasource:
```hcl
data "cloudstack_instance" "controlplane" {
count = var.controlplane_count
depends_on = [cloudstack_instance.controlplane]
filter {
name = "display_name" # Tried also "name"
value = "${var.cluster_name}-control-${count.index + 1}"
}
}
```
But provider returns an error:
``Error: No instance is matching with the specified regex``
While it certainly exists and should match.
--
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]