Damans227 commented on PR #34:
URL: 
https://github.com/apache/cloudstack-terraform-provider/pull/34#issuecomment-1153307248

   Hi @Pearl1594 and @harikrishna-patnala Could you please review this PR when 
you get a chance? Thanks! 
   
   Result of manually testing the provider binary for instance data source:
   
   
   **main.tf file used:** 
   
   ```
   resource "cloudstack_instance" "instance-test-a" {
     name             = "server-a"
     service_offering = "Small Instance"
     network_id       = "b9c953a0-8686-4240-b8a4-43849f7079ff"
     template         = "CentOS 5.5(64-bit) no GUI (KVM)"
     zone             = "DC"
   }
   
   data "cloudstack_instance" "my_instance" {
       filter {
       name = "name" 
       value = "server-a"
     }
       depends_on = [
       cloudstack_instance.instance-test-a
     ]
   
   }
   
   output "instance-output" {
     value = "${data.cloudstack_instance.my_instance}"
   }
   ```
   
   **Terraform apply output:** 
   
   ```
    ~/cloudstack-dev/gh-issue-6016/instance 
    ❯ terraform apply
   ╷
   │ Warning: Provider development overrides are in effect
   
   Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
   
   Outputs:
   
   instance-output = {
     "account" = "admin"
     "created" = "2022-06-12T22:10:14+0000"
     "display_name" = "server-a"
     "filter" = toset([
       {
         "name" = "name"
         "value" = "server-a"
       },
     ])
     "host_id" = "24b1a694-9907-4d93-9f3a-583ed2380c21"
     "id" = "db3084bc-8411-41fa-bc2b-90f28a1a3df8"
     "instance_id" = "db3084bc-8411-41fa-bc2b-90f28a1a3df8"
     "nic" = tolist([
       {
         "ip_address" = "10.1.1.154"
       },
     ])
     "state" = "Running"
     "tags" = tomap({})
     "zone_id" = "9a7002b2-09a2-44dc-a332-f2e4e7f01539"
   }
   
   ```


-- 
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-unsubscr...@cloudstack.apache.org

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

Reply via email to