AWS: Add CPU pricing mode and controller/worker disk variables

* Add `controller_disk_type`, `controller_disk_size`, and `controller_disk_iops`
variables
* Add `worker_disk_type`, `worker_disk_size`, and `worker_disk_iops` variables
and fix propagation to worker nodes
* Remove `disk_type`, `disk_size`, and `disk_iops` variables
* Add `controller_cpu_credits` and `worker_cpu_credits` variables to set CPU
pricing mode for burstable instance types
This commit is contained in:
Dalton Hubble
2024-07-26 22:22:34 -07:00
parent 39b5079bc3
commit 1104b4bf28
11 changed files with 162 additions and 62 deletions

View File

@ -94,6 +94,10 @@ resource "aws_launch_template" "worker" {
}
}
credit_specification {
cpu_credits = var.cpu_credits
}
lifecycle {
// Override the default destroy and replace update behavior
create_before_destroy = true