mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-01 06:53:06 +02:00
feat: Add support for throughput parameter for gp3 volumes (#1146)
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.3.0 |
|
| aws | >= 3.21.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.3.0 |
|
| aws | >= 3.21.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
@@ -45,6 +45,7 @@ locals {
|
|||||||
root_volume_size = "100" # root volume size of workers instances.
|
root_volume_size = "100" # root volume size of workers instances.
|
||||||
root_volume_type = "gp2" # root volume type of workers instances, can be 'standard', 'gp2', or 'io1'
|
root_volume_type = "gp2" # root volume type of workers instances, can be 'standard', 'gp2', or 'io1'
|
||||||
root_iops = "0" # The amount of provisioned IOPS. This must be set with a volume_type of "io1".
|
root_iops = "0" # The amount of provisioned IOPS. This must be set with a volume_type of "io1".
|
||||||
|
root_volume_throughput = null # The amount of throughput to provision for a gp3 volume.
|
||||||
key_name = "" # The key pair name that should be used for the instances in the autoscaling group
|
key_name = "" # The key pair name that should be used for the instances in the autoscaling group
|
||||||
pre_userdata = "" # userdata to pre-append to the default userdata.
|
pre_userdata = "" # userdata to pre-append to the default userdata.
|
||||||
userdata_template_file = "" # alternate template to use for userdata
|
userdata_template_file = "" # alternate template to use for userdata
|
||||||
|
|||||||
@@ -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.3.0"
|
aws = ">= 3.21.0"
|
||||||
local = ">= 1.4"
|
local = ">= 1.4"
|
||||||
null = ">= 2.1"
|
null = ">= 2.1"
|
||||||
template = ">= 2.1"
|
template = ">= 2.1"
|
||||||
|
|||||||
@@ -384,6 +384,11 @@ resource "aws_launch_template" "workers_launch_template" {
|
|||||||
"root_iops",
|
"root_iops",
|
||||||
local.workers_group_defaults["root_iops"],
|
local.workers_group_defaults["root_iops"],
|
||||||
)
|
)
|
||||||
|
throughput = lookup(
|
||||||
|
var.worker_groups_launch_template[count.index],
|
||||||
|
"root_volume_throughput",
|
||||||
|
local.workers_group_defaults["root_volume_throughput"],
|
||||||
|
)
|
||||||
encrypted = lookup(
|
encrypted = lookup(
|
||||||
var.worker_groups_launch_template[count.index],
|
var.worker_groups_launch_template[count.index],
|
||||||
"root_encrypted",
|
"root_encrypted",
|
||||||
@@ -419,6 +424,11 @@ resource "aws_launch_template" "workers_launch_template" {
|
|||||||
"iops",
|
"iops",
|
||||||
local.workers_group_defaults["root_iops"],
|
local.workers_group_defaults["root_iops"],
|
||||||
)
|
)
|
||||||
|
throughput = lookup(
|
||||||
|
block_device_mappings.value,
|
||||||
|
"throughput",
|
||||||
|
local.workers_group_defaults["root_volume_throughput"],
|
||||||
|
)
|
||||||
encrypted = lookup(
|
encrypted = lookup(
|
||||||
block_device_mappings.value,
|
block_device_mappings.value,
|
||||||
"encrypted",
|
"encrypted",
|
||||||
|
|||||||
Reference in New Issue
Block a user