Skip to content

Commit

Permalink
Adding tag to launch template
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDiazL committed Dec 18, 2023
1 parent 89d56cc commit a7e67ce
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ resource "aws_launch_template" "main" {
http_put_response_hop_limit = 1
instance_metadata_tags = "enabled"
}
tag_specifications {
resource_type = "instance"

tags = {
"kubernetes.io/cluster/${var.aws_eks_cluster_name}" = "owned"
# Add any other tags as needed
}
}
}

data "aws_ami" "image_selected" {
Expand Down

0 comments on commit a7e67ce

Please sign in to comment.