resource "aws_autoscaling_group" "msrvd-dev-EKS-ASG" {
  capacity_rebalance        = false
  default_cooldown          = 300
  default_instance_warmup   = 0
  desired_capacity          = 0
  enabled_metrics           = []
  health_check_grace_period = 60
  health_check_type         = "EC2"
  load_balancers            = []
  max_instance_lifetime     = 0
  max_size                  = 3
  metrics_granularity       = "1Minute"
  min_size                  = 0
  name                      = "msrvd-dev-EKS-AutoScalingGroup"
  protect_from_scale_in     = false
  service_linked_role_arn   = "arn:aws:iam::130080192946:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling"
  suspended_processes       = []
  target_group_arns         = []
  termination_policies      = []
  vpc_zone_identifier = [
    "subnet-0233663b2f739f323",
    "subnet-0c9119f3d13572a90",
  ]

  launch_template {
    name    = "msrvd-dev-EKS-v.10.2022-Launch-Template"
    version = "$Latest"
  }

  tag {
    key                 = "Business-unit"
    propagate_at_launch = true
    value               = "Delivery-Media-Services"
  }
  tag {
    key                 = "DATA"
    propagate_at_launch = true
    value               = "NORMAL"
  }
  tag {
    key                 = "Environment"
    propagate_at_launch = true
    value               = "Dev"
  }
  tag {
    key                 = "Name"
    propagate_at_launch = true
    value               = "msrvd-dev-worker-node"
  }
  tag {
    key                 = "OPS"
    propagate_at_launch = true
    value               = "STND"
  }
  tag {
    key                 = "OS"
    propagate_at_launch = true
    value               = "AL3"
  }
  tag {
    key                 = "Owner"
    propagate_at_launch = true
    value               = "Mandar Padsalgikar"
  }
  tag {
    key                 = "Patch Group"
    propagate_at_launch = true
    value               = "Container"
  }
  tag {
    key                 = "Project-code"
    propagate_at_launch = true
    value               = "SME-2000-0306G"
  }
  tag {
    key                 = "Project-name"
    propagate_at_launch = true
    value               = "MSRV"
  }
  tag {
    key                 = "SERVER_TYPE"
    propagate_at_launch = true
    value               = "EKS"
  }
  tag {
    key                 = "kubernetes.io/cluster/msrvd-dev"
    propagate_at_launch = true
    value               = "owned"
  }
}
