Skip to content

Commit a774a15

Browse files
committed
feat: Add nested_virtualization to launch config
- Add nested_virtualization to launch template cpu_options block (enabled/disabled) - Extend cpu_options variable type and document valid values - Bump AWS provider constraint to >= 6.33 for nested_virtualization support
1 parent 42693d4 commit a774a15

File tree

20 files changed

+34
-30
lines changed

20 files changed

+34
-30
lines changed

examples/eks-auto-mode/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 6.28"
7+
version = ">= 6.33"
88
}
99
}
1010
}

examples/eks-capabilities/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 6.28"
7+
version = ">= 6.33"
88
}
99
}
1010
}

examples/eks-hybrid-nodes/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 6.28"
7+
version = ">= 6.33"
88
}
99
helm = {
1010
source = "hashicorp/helm"

examples/eks-managed-node-group/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 6.28"
7+
version = ">= 6.33"
88
}
99
}
1010
}

examples/karpenter/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 6.28"
7+
version = ">= 6.33"
88
}
99
helm = {
1010
source = "hashicorp/helm"

examples/self-managed-node-group/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 6.28"
7+
version = ">= 6.33"
88
}
99
}
1010
}

modules/capability/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 6.28"
7+
version = ">= 6.33"
88
}
99
time = {
1010
source = "hashicorp/time"

modules/eks-managed-node-group/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@ resource "aws_launch_template" "this" {
147147
for_each = var.cpu_options != null ? [var.cpu_options] : []
148148

149149
content {
150-
amd_sev_snp = cpu_options.value.amd_sev_snp
151-
core_count = cpu_options.value.core_count
152-
threads_per_core = cpu_options.value.threads_per_core
150+
amd_sev_snp = cpu_options.value.amd_sev_snp
151+
core_count = cpu_options.value.core_count
152+
nested_virtualization = try(cpu_options.value.nested_virtualization, null)
153+
threads_per_core = cpu_options.value.threads_per_core
153154
}
154155
}
155156

modules/eks-managed-node-group/variables.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,12 @@ variable "capacity_reservation_specification" {
250250
}
251251

252252
variable "cpu_options" {
253-
description = "The CPU options for the instance"
253+
description = "The CPU options for the instance."
254254
type = object({
255-
amd_sev_snp = optional(string)
256-
core_count = optional(number)
257-
threads_per_core = optional(number)
255+
amd_sev_snp = optional(string)
256+
core_count = optional(number)
257+
nested_virtualization = optional(string)
258+
threads_per_core = optional(number)
258259
})
259260
default = null
260261
}

modules/eks-managed-node-group/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 6.28"
7+
version = ">= 6.33"
88
}
99
}
1010

0 commit comments

Comments
 (0)