resource "cloudca_instance" "my_instance" {
environment_id = "4cad744d-bf1f-423d-887b-bbb34f4d1b5b"
name = "test-instance"
network_id = "672016ef-05ee-4e88-b68f-ac9cc462300b"
template = "Ubuntu 16.04.03 HVM"
compute_offering = "Standard"
cpu_count = 4
memory_in_mb = 8192
ssh_key_name = "my_ssh_key"
root_volume_size_in_gb = 100
private_ip = "10.2.1.124"
dedicated_group_id = "78fdce97-3a46-4b50-bca7-c70ef8449da8"
volume {
name = "Data Volume"
disk_offering = "20GB - 20 IOPS Min."
size_in_gb = 50
}
}
Some of the resources in the provider are really tied to each other and currently being managed under their standalone resources. But they can be moved under block of code under corresponding parent of their own.
Move
volumeinsideinstance:Move
network_acl_ruleundernetwork_acl:Move
port_forwarding_ruleandstatic_natandload_balancer_ruleunderpublic_ip: