kiranchavala commented on issue #31:
URL:
https://github.com/apache/cloudstack-terraform-provider/issues/31#issuecomment-1978939126
@Pearl1594
Not able to reproduce the issue, I was able to deploy a vm and add secondary
IP to a NIC for a VM in a project.
Let me know if can close the issue
My sample terraform file
```
provider "cloudstack" {
api_url = var.cloudstack_api_url
api_key = var.cloudstack_api_key
secret_key = var.cloudstack_secret_key
}
resource "cloudstack_network" "test-network" {
name = var.network_name
cidr = "10.0.0.0/24"
network_offering = var.network_offering
zone = var.zone
project = "test"
}
resource "cloudstack_instance" "test-vm" {
name = var.instance_name
service_offering = var.instance_service_offering
network_id = cloudstack_network.test-network.id
template = var.instance_template
zone = var.zone
project = "test"
expunge = true
depends_on = [
cloudstack_network.test-network
]
}
resource "cloudstack_secondary_ipaddress" "default" {
virtual_machine_id = cloudstack_instance.test-vm.id
depends_on = [ cloudstack_network.test-network,
cloudstack_instance.test-vm ]
}
```
--
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]