Skip to content

Commit

Permalink
Merge pull request #33 from WesleyCharlesBlake/bug/node-group-tagging
Browse files Browse the repository at this point in the history
adds better name tags to nodes
  • Loading branch information
WesleyCharlesBlake authored Sep 18, 2019
2 parents 07a18c3 + c6938ee commit b4d009d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions modules/eks/bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ variable "ec2-key" {}
module "bastion-asg" {
source = "terraform-aws-modules/autoscaling/aws"
version = "~> 3.0"
name = "bastion-asg"
name = "${var.cluster-name}-bastion"

lc_name = "bastion-lc"
lc_name = "${var.cluster-name}-bastion-lc"

image_id = data.aws_ami.bastion.id
instance_type = "t2.small"
Expand All @@ -25,7 +25,7 @@ module "bastion-asg" {
]

# Auto scaling group
asg_name = "bastion"
asg_name = "${var.cluster-name}-bastion"
vpc_zone_identifier = data.aws_subnet_ids.public.ids
health_check_type = "EC2"
min_size = 1
Expand All @@ -36,10 +36,9 @@ module "bastion-asg" {

tags = [
{
key = "Name"
value = "bastion"
key = "kubernetes.io/cluster/${var.cluster-name}"
value = "owned"
propagate_at_launch = true
}
]

}
2 changes: 1 addition & 1 deletion modules/eks/eks-worker-nodes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ USERDATA
module "eks-nodes-asg" {
source = "terraform-aws-modules/autoscaling/aws"
version = "~> 3.0"
name = "eks-nodes-asg"
name = "${var.cluster-name}-eks-nodes"

# Launch configuration
#
Expand Down

0 comments on commit b4d009d

Please sign in to comment.