mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-27 20:01:06 +01:00
fix: Fixed launch_templates_with_managed_node_group example (#1599)
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
resource "aws_iam_service_linked_role" "autoscaling" {
|
resource "aws_iam_service_linked_role" "autoscaling" {
|
||||||
aws_service_name = "autoscaling.amazonaws.com"
|
aws_service_name = "autoscaling.amazonaws.com"
|
||||||
description = "Default Service-Linked Role enables access to AWS Services and Resources used or managed by Auto Scaling"
|
description = "Default Service-Linked Role enables access to AWS Services and Resources used or managed by Auto Scaling"
|
||||||
|
custom_suffix = "lt_with_managed_node_groups" # the full name is "AWSServiceRoleForAutoScaling_lt_with_managed_node_groups" < 64 characters
|
||||||
}
|
}
|
||||||
|
|
||||||
#data "aws_caller_identity" "current" {}
|
#data "aws_caller_identity" "current" {}
|
||||||
|
|||||||
@@ -37,8 +37,6 @@ resource "aws_launch_template" "default" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
instance_type = var.instance_type
|
|
||||||
|
|
||||||
monitoring {
|
monitoring {
|
||||||
enabled = true
|
enabled = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,6 +62,8 @@ module "eks" {
|
|||||||
launch_template_id = aws_launch_template.default.id
|
launch_template_id = aws_launch_template.default.id
|
||||||
launch_template_version = aws_launch_template.default.default_version
|
launch_template_version = aws_launch_template.default.default_version
|
||||||
|
|
||||||
|
instance_types = var.instance_types
|
||||||
|
|
||||||
additional_tags = {
|
additional_tags = {
|
||||||
CustomTag = "EKS example"
|
CustomTag = "EKS example"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
variable "instance_type" {
|
variable "instance_types" {
|
||||||
description = "Instance type"
|
description = "Instance types"
|
||||||
# Smallest recommended, where ~1.1Gb of 2Gb memory is available for the Kubernetes pods after ‘warming up’ Docker, Kubelet, and OS
|
# Smallest recommended, where ~1.1Gb of 2Gb memory is available for the Kubernetes pods after ‘warming up’ Docker, Kubelet, and OS
|
||||||
type = string
|
type = list(string)
|
||||||
default = "t3.small"
|
default = ["t3.small"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user