apache / apache/cloudstack-terraform-provider
Provider does not allow dynamic scaling
- Dominant language
- Go
- Stars
- 53
- Forks
- 67
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 15
Description
Hello there,
it seems like the provider does not allow dynamic scaling of instances.
Currently the provider calls `updateVirtualMachine` everytime something has changed on a `cloudstack_instance` resource. This updates the compute instance in CloudStack Management but does not change the actual VM.
To actually change the VM `scaleVirtualMachine` must be called.
The provider should check if `details.cpuNumber`, `details.cpuSpeed` or `details.memory` has changed and call `scaleVirtualMachine` prior to `updateVirtualMachine` or skip `updateVirtualMachine` at all when nothing else changed.
Thank you for looking into this.
Contributor guide
Assessment
This issue has not been assessed yet.