mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-18 07:23:45 +01:00
improvement: Make the cpu_credits optional for workers launch template (#1030)
NOTES: `credit_specification` for worker groups launch template can now be set to `null` so that we can use non burstable EC2 families
This commit is contained in:
@@ -309,12 +309,15 @@ resource "aws_launch_template" "workers_launch_template" {
|
||||
)
|
||||
}
|
||||
|
||||
credit_specification {
|
||||
cpu_credits = lookup(
|
||||
dynamic "credit_specification" {
|
||||
for_each = lookup(
|
||||
var.worker_groups_launch_template[count.index],
|
||||
"cpu_credits",
|
||||
local.workers_group_defaults["cpu_credits"]
|
||||
)
|
||||
) != null ? [lookup(var.worker_groups_launch_template[count.index], "cpu_credits", local.workers_group_defaults["cpu_credits"])] : []
|
||||
content {
|
||||
cpu_credits = credit_specification.value
|
||||
}
|
||||
}
|
||||
|
||||
monitoring {
|
||||
|
||||
Reference in New Issue
Block a user