resource "aws_launch_template" "dsrv-stage-eks-cluster-EKS-Launch-Template" {
  #checkov:skip=CKV_AWS_79: Ensure Instance Metadata Service Version 1 is not enabled
  name        = "dsrv-stage-eks-cluster-EKS-Launch-Template"
  description = "EKS Upgrade 1.29"
  iam_instance_profile {
    name = "deld-EKS-worker-node-Role"
  }
  image_id               = "ami-04c83e4a5ddeeeba8"
  instance_type          = "m5.xlarge"
  key_name               = "deld-ff"
  vpc_security_group_ids = [aws_security_group.sg-0f61d33757fe9cf62.id]
  tags = {
    Name                                           = "dsrv-stage-eks-cluster-worker-node"
    Business-unit                                  = "DELD"
    DATA                                           = "NORMAL"
    Environment                                    = "STAGE"
    OPS                                            = "STND"
    OS                                             = "AL2"
    Owner                                          = "Steve Leeds"
    Patch-Group                                    = "Container"
    Project-code                                   = "SME-2000-0306B"
    Project-name                                   = "Delivey-Dev"
    SERVER_TYPE                                    = "EKS"
    "kubernetes.io/cluster/dsrv-stage-eks-cluster" = "owned"
  }
  user_data = filebase64("${path.module}/userdata-scripts/dsrv-stage-eks-cluster-eks-launch-template.sh")
}