Created
February 9, 2020 04:48
-
-
Save alicek106/eb352590c5ee68845fa3b357ce202c73 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_version = ">= 0.12.0" | |
} | |
module "eks" { | |
source = "terraform-aws-modules/eks/aws" | |
cluster_name = "alicek106-cluster" | |
subnets = ["subnet-A", "subnet-B", "subnet-C"] | |
manage_aws_auth = true | |
version = "~> 7.0.0" | |
tags = { | |
Owner = "alicek106" | |
} | |
vpc_id = "vpc-D" | |
worker_groups = [ | |
{ | |
name = "worker-group-1" | |
instance_type = "t2.small" | |
asg_desired_capacity = 0 | |
asg_max_size = 1 | |
asg_min_size = 0 | |
key_name = "Docker Engine Test Instance" | |
subnets = ["subnet-A"] | |
}, | |
# 삭제될 워커 그룹 | |
{ | |
name = "worker-group-2" | |
instance_type = "t2.medium" | |
asg_desired_capacity = 0 | |
asg_max_size = 1 | |
asg_min_size = 0 | |
key_name = "Docker Engine Test Instance" | |
subnets = ["subnet-A"] | |
}, | |
{ | |
name = "worker-group-3" | |
instance_type = "t2.large" | |
asg_desired_capacity = 0 | |
asg_max_size = 1 | |
asg_min_size = 0 | |
key_name = "Docker Engine Test Instance" | |
subnets = ["subnet-A"] | |
}, | |
{ | |
name = "worker-group-4" | |
instance_type = "t2.medium" | |
asg_desired_capacity = 0 | |
asg_max_size = 1 | |
asg_min_size = 0 | |
key_name = "Docker Engine Test Instance" | |
subnets = ["subnet-A"] | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment