Difference between revisions of "Terraform EKS submodule: eks managed node groups"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
one = { | one = { | ||
name = "node-group-1" | name = "node-group-1" | ||
− | + | ||
instance_types = ["t3.small"] | instance_types = ["t3.small"] | ||
− | + | ||
min_size = 1 | min_size = 1 | ||
max_size = 3 | max_size = 3 | ||
desired_size = 2 | desired_size = 2 | ||
− | + | ||
pre_bootstrap_user_data = <<-EOT | pre_bootstrap_user_data = <<-EOT | ||
echo 'foo bar' | echo 'foo bar' | ||
EOT | EOT | ||
− | + | ||
vpc_security_group_ids = [ | vpc_security_group_ids = [ | ||
aws_security_group.node_group_one.id | aws_security_group.node_group_one.id | ||
] | ] | ||
} | } | ||
− | + | ||
two = { | two = { | ||
name = "node-group-2" | name = "node-group-2" | ||
− | + | ||
instance_types = ["t3.medium"] | instance_types = ["t3.medium"] | ||
− | + | ||
min_size = 1 | min_size = 1 | ||
max_size = 2 | max_size = 2 | ||
desired_size = 1 | desired_size = 1 | ||
− | + | ||
pre_bootstrap_user_data = <<-EOT | pre_bootstrap_user_data = <<-EOT | ||
echo 'foo bar' | echo 'foo bar' | ||
EOT | EOT | ||
− | + | ||
vpc_security_group_ids = [ | vpc_security_group_ids = [ | ||
aws_security_group.node_group_two.id | aws_security_group.node_group_two.id |
Revision as of 11:17, 9 December 2022
eks_managed_node_groups
eks_managed_node_groups = { one = { name = "node-group-1" instance_types = ["t3.small"] min_size = 1 max_size = 3 desired_size = 2 pre_bootstrap_user_data = <<-EOT echo 'foo bar' EOT vpc_security_group_ids = [ aws_security_group.node_group_one.id ] } two = { name = "node-group-2" instance_types = ["t3.medium"] min_size = 1 max_size = 2 desired_size = 1 pre_bootstrap_user_data = <<-EOT echo 'foo bar' EOT vpc_security_group_ids = [ aws_security_group.node_group_two.id ] } }
Related
See also
Advertising: