mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-30 20:34:37 +02:00
feat: Allow configuring which tags are passed on launch template tag specifications (#2360)
Resolves undefined
This commit is contained in:
@@ -161,6 +161,7 @@ module "eks_managed_node_group" {
|
||||
| <a name="input_ram_disk_id"></a> [ram\_disk\_id](#input\_ram\_disk\_id) | The ID of the ram disk | `string` | `null` | no |
|
||||
| <a name="input_remote_access"></a> [remote\_access](#input\_remote\_access) | Configuration block with remote access settings. Only valid when `use_custom_launch_template` = `false` | `any` | `{}` | no |
|
||||
| <a name="input_subnet_ids"></a> [subnet\_ids](#input\_subnet\_ids) | Identifiers of EC2 Subnets to associate with the EKS Node Group. These subnets must have the following resource tag: `kubernetes.io/cluster/CLUSTER_NAME` | `list(string)` | `null` | no |
|
||||
| <a name="input_tag_specifications"></a> [tag\_specifications](#input\_tag\_specifications) | The tags to apply to the resources during launch | `list(string)` | <pre>[<br> "instance",<br> "volume",<br> "network-interface",<br> "spot-instances-request"<br>]</pre> | no |
|
||||
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to add to all resources | `map(string)` | `{}` | no |
|
||||
| <a name="input_taints"></a> [taints](#input\_taints) | The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group | `any` | `{}` | no |
|
||||
| <a name="input_timeouts"></a> [timeouts](#input\_timeouts) | Create, update, and delete timeout configurations for the node group | `map(string)` | `{}` | no |
|
||||
|
||||
@@ -270,7 +270,7 @@ resource "aws_launch_template" "this" {
|
||||
ram_disk_id = var.ram_disk_id
|
||||
|
||||
dynamic "tag_specifications" {
|
||||
for_each = toset(["instance", "volume", "elastic-gpu", "network-interface", "spot-instances-request"])
|
||||
for_each = toset(var.tag_specifications)
|
||||
|
||||
content {
|
||||
resource_type = tag_specifications.key
|
||||
|
||||
@@ -274,6 +274,12 @@ variable "launch_template_tags" {
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "tag_specifications" {
|
||||
description = "The tags to apply to the resources during launch"
|
||||
type = list(string)
|
||||
default = ["instance", "volume", "network-interface", "spot-instances-request"]
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# EKS Managed Node Group
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user