mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-28 04:11:07 +01:00
feat: Add nitro enclave support for EKS (#1185)
This commit is contained in:
@@ -145,7 +145,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
|
|||||||
| Name | Version |
|
| Name | Version |
|
||||||
|------|---------|
|
|------|---------|
|
||||||
| terraform | >= 0.12.9, != 0.13.0 |
|
| terraform | >= 0.12.9, != 0.13.0 |
|
||||||
| aws | >= 3.21.0 |
|
| aws | >= 3.22.0 |
|
||||||
| kubernetes | >= 1.11.1 |
|
| kubernetes | >= 1.11.1 |
|
||||||
| local | >= 1.4 |
|
| local | >= 1.4 |
|
||||||
| null | >= 2.1 |
|
| null | >= 2.1 |
|
||||||
@@ -156,7 +156,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
|
|||||||
|
|
||||||
| Name | Version |
|
| Name | Version |
|
||||||
|------|---------|
|
|------|---------|
|
||||||
| aws | >= 3.21.0 |
|
| aws | >= 3.22.0 |
|
||||||
| kubernetes | >= 1.11.1 |
|
| kubernetes | >= 1.11.1 |
|
||||||
| local | >= 1.4 |
|
| local | >= 1.4 |
|
||||||
| null | >= 2.1 |
|
| null | >= 2.1 |
|
||||||
|
|||||||
1
local.tf
1
local.tf
@@ -54,6 +54,7 @@ locals {
|
|||||||
additional_userdata = "" # userdata to append to the default userdata.
|
additional_userdata = "" # userdata to append to the default userdata.
|
||||||
ebs_optimized = true # sets whether to use ebs optimization on supported types.
|
ebs_optimized = true # sets whether to use ebs optimization on supported types.
|
||||||
enable_monitoring = true # Enables/disables detailed monitoring.
|
enable_monitoring = true # Enables/disables detailed monitoring.
|
||||||
|
enclave_support = false # Enables/disables enclave support
|
||||||
public_ip = false # Associate a public ip address with a worker
|
public_ip = false # Associate a public ip address with a worker
|
||||||
kubelet_extra_args = "" # This string is passed directly to kubelet if set. Useful for adding labels or taints.
|
kubelet_extra_args = "" # This string is passed directly to kubelet if set. Useful for adding labels or taints.
|
||||||
subnets = var.subnets # A list of subnets to place the worker nodes in. i.e. ["subnet-123", "subnet-456", "subnet-789"]
|
subnets = var.subnets # A list of subnets to place the worker nodes in. i.e. ["subnet-123", "subnet-456", "subnet-789"]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ terraform {
|
|||||||
required_version = ">= 0.12.9, != 0.13.0"
|
required_version = ">= 0.12.9, != 0.13.0"
|
||||||
|
|
||||||
required_providers {
|
required_providers {
|
||||||
aws = ">= 3.21.0"
|
aws = ">= 3.22.0"
|
||||||
local = ">= 1.4"
|
local = ">= 1.4"
|
||||||
null = ">= 2.1"
|
null = ">= 2.1"
|
||||||
template = ">= 2.1"
|
template = ">= 2.1"
|
||||||
|
|||||||
@@ -272,6 +272,14 @@ resource "aws_launch_template" "workers_launch_template" {
|
|||||||
)[count.index]
|
)[count.index]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enclave_options {
|
||||||
|
enabled = lookup(
|
||||||
|
var.worker_groups_launch_template[count.index],
|
||||||
|
"enclave_support",
|
||||||
|
local.workers_group_defaults["enclave_support"],
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
image_id = lookup(
|
image_id = lookup(
|
||||||
var.worker_groups_launch_template[count.index],
|
var.worker_groups_launch_template[count.index],
|
||||||
"ami_id",
|
"ami_id",
|
||||||
|
|||||||
Reference in New Issue
Block a user