onitake commented on issue #31:
URL: 
https://github.com/apache/cloudstack-terraform-provider/issues/31#issuecomment-1028143924


   @Pearl1594 It sounds to me like this is a problem with your 
cloudstack_secondary_ipaddress.default resource. It lacks all the parameters 
the other resources have (such as zone and project_id).
   
   @DaanHoogland I wonder why it worked for you. Perhaps you're using a global 
admin that can see all VMs in all projects?
   
   On the other hand, I think these are parameters that should not be specified 
on individual resources, but on the provider. It doesn't really make sense to 
write them over and over again. If you need to access multiple projects or 
zones, you can use multiple providers in the same Terraform script.
   
   Here's an example on how this is done when you need to access multiple AWS 
regions: 
https://www.terraform.io/language/providers/configuration#selecting-alternate-provider-configurations
   Perhaps the CloudStack Terraform provider should adopt a similar approach?
   
   (Disclaimer: I haven't used the ACS Terraform provider myself, but I have 
quite a bit of experience with Terraform in general)


-- 
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