resource "aws_autoscaling_group" "mcond-del-dev2-EKS-AutoScalingGroup" {
  name                      = "mcond-del-dev2-EKS-AutoScalingGroup"
  desired_capacity          = 0
  min_size                  = 0
  max_size                  = 0
  default_cooldown          = 300
  default_instance_warmup   = 0
  health_check_grace_period = 60
  health_check_type         = "EC2"

  availability_zones = [
    "eu-central-1a",
    "eu-central-1b"
  ]
  metrics_granularity       = "1Minute"
  wait_for_capacity_timeout = "10m"
  force_delete              = false
  force_delete_warm_pool    = false
  protect_from_scale_in     = false
  capacity_rebalance        = false

  service_linked_role_arn = "arn:aws:iam::104858398257:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling"

  launch_template {
    id      = "lt-0af7631d78876ea2e"
    version = "$Latest"
  }

  tag {
    key                 = "Business-unit"
    value               = "Media Conversion"
    propagate_at_launch = true
  }

  tag {
    key                 = "DATA"
    value               = "NORMAL"
    propagate_at_launch = true
  }

  tag {
    key                 = "Environment"
    value               = "Dev"
    propagate_at_launch = true
  }

  tag {
    key                 = "Name"
    value               = "mcond-del-dev2-worker-node"
    propagate_at_launch = true
  }

  tag {
    key                 = "OPS"
    value               = "STND"
    propagate_at_launch = true
  }

  tag {
    key                 = "OS"
    value               = "AL2"
    propagate_at_launch = true
  }

  tag {
    key                 = "Owner"
    value               = "Mandar Padsalgikar"
    propagate_at_launch = true
  }

  tag {
    key                 = "Patch Group"
    value               = "Container"
    propagate_at_launch = true
  }

  tag {
    key                 = "Project-code"
    value               = "SME-2000-0306C"
    propagate_at_launch = true
  }

  tag {
    key                 = "Project-name"
    value               = "MCON"
    propagate_at_launch = true
  }

  tag {
    key                 = "SERVER_TYPE"
    value               = "EKS"
    propagate_at_launch = true
  }

  tag {
    key                 = "kubernetes.io/cluster/mcond-del-dev2"
    value               = "owned"
    propagate_at_launch = true
  }
}
