Skip to content

Commit b3e2c5b

Browse files
spkaneArchiFleKs
authored andcommitted
feat: Add nitro enclave support for EKS (terraform-aws-modules#1185)
1 parent 7db461e commit b3e2c5b

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
145145
| Name | Version |
146146
|------|---------|
147147
| terraform | >= 0.12.9, != 0.13.0 |
148-
| aws | >= 3.21.0 |
148+
| aws | >= 3.22.0 |
149149
| kubernetes | >= 1.11.1 |
150150
| local | >= 1.4 |
151151
| null | >= 2.1 |
@@ -156,7 +156,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
156156

157157
| Name | Version |
158158
|------|---------|
159-
| aws | >= 3.21.0 |
159+
| aws | >= 3.22.0 |
160160
| kubernetes | >= 1.11.1 |
161161
| local | >= 1.4 |
162162
| null | >= 2.1 |

local.tf

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ locals {
5454
additional_userdata = "" # userdata to append to the default userdata.
5555
ebs_optimized = true # sets whether to use ebs optimization on supported types.
5656
enable_monitoring = true # Enables/disables detailed monitoring.
57+
enclave_support = false # Enables/disables enclave support
5758
public_ip = false # Associate a public ip address with a worker
5859
kubelet_extra_args = "" # This string is passed directly to kubelet if set. Useful for adding labels or taints.
5960
subnets = var.subnets # A list of subnets to place the worker nodes in. i.e. ["subnet-123", "subnet-456", "subnet-789"]

versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_version = ">= 0.12.9, != 0.13.0"
33

44
required_providers {
5-
aws = ">= 3.21.0"
5+
aws = ">= 3.22.0"
66
local = ">= 1.4"
77
null = ">= 2.1"
88
template = ">= 2.1"

workers_launch_template.tf

+8
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,14 @@ resource "aws_launch_template" "workers_launch_template" {
272272
)[count.index]
273273
}
274274

275+
enclave_options {
276+
enabled = lookup(
277+
var.worker_groups_launch_template[count.index],
278+
"enclave_support",
279+
local.workers_group_defaults["enclave_support"],
280+
)
281+
}
282+
275283
image_id = lookup(
276284
var.worker_groups_launch_template[count.index],
277285
"ami_id",

0 commit comments

Comments
 (0)