ferdinandopaes opened a new issue, #162:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/162

   curl -X GET 
"https://painel.lwsa.cloud/client/api?command=listVPCs&apiKey=5Yv_RRg3rkDWqh8UuaBCTeMGwj-nrKGSxdju8Vc2mCae5BnYu59aZO-j4NPjvwVP8RvYHEu3_6UVf5ykFDUUPQ&signature=55da42a4a3f271b26c10d79b576df9bf4a077584&response=json&secretKey=uDnhE3t8fJizh90ozOovrR2p0ceWcpgvfXq3AsAxpZL8Vn0dedVuLDu8BKbIIgAl__8h63ZiHbvxqOhwuW9QcA";
   
   
   Hello,
   
   I am using the VPC datasource to retrieve the data.
   But I am receiving the following error:
   
   ```
   Error: No VPC is matching with the specified regex
   ```
   
   It occurs even when changing and using any other filter.
   
   My `main.tf`
   
   ```
   terraform {
     required_providers {
       cloudstack = {
           source  = "cloudstack/cloudstack"
           version = "0.5.0"
       }
     }
   }
   
   provider "cloudstack" {
     api_url     = "https://<my_cloudstack_url>/client/api"
     api_key     = "${var.cloudstack_api_key}"
     secret_key  = "${var.cloudstack_secret_key}"
   }
   
   variable "cloudstack_api_key" {
     description = "API KEY for CloudStack"
     type        = string
   }
   
   variable "cloudstack_secret_key" {
     description = "SECRET KEY for CloudStack"
     type        = string
   }
   ```
   
   My `data.tf`
   
   ```
   data "cloudstack_vpc" "vpc" {
     filter{
       name  = "cidr"
       value = "10.25.0.0/16"
     }
     filter{
       name  = "name"
       value = "boilerplate"
     }
     filter{
       name = "project"
       value  = "boilerplate"
     }
   }
   ```
   
   I tried using the datasource with all the filters, but I also tried one 
filter at a time to identify any issues with the values.


-- 
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.apache.org

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

Reply via email to