You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/02/02 16:54:09 UTC

[GitHub] [cloudstack-terraform-provider] onitake commented on issue #31: Failure to add secondary IP to a NIC for a VM in a project

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

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