resource "aws_launch_template" "ECS-AutoScale-Launch-Template" {
  #checkov:skip=CKV_AWS_79: Ensure Instance Metadata Service Version 1 is not enabled
  name = "ECS-AutoScale-Launch-Template"
  block_device_mappings {
    device_name = "/dev/xvda"
    ebs {
      volume_size           = 10
      delete_on_termination = true
      iops                  = 125
      snapshot_id           = "snap-054ed96b07090f6b0"
      volume_type           = "gp3"
    }
  }
  block_device_mappings {
    device_name = "/dev/sdd"
    ebs {
      volume_size           = 5
      delete_on_termination = true
      iops                  = 125
      snapshot_id           = "snap-043add72a8ca40548"
      volume_type           = "gp3"
    }
  }
  block_device_mappings {
    device_name = "/dev/sdc"
    ebs {
      volume_size           = 4
      delete_on_termination = true
      iops                  = 125
      snapshot_id           = "snap-0b572f14e0556dfbc"
      volume_type           = "gp3"
    }
  }
  block_device_mappings {
    device_name = "/dev/sde"
    ebs {
      volume_size           = 8
      delete_on_termination = true
      iops                  = 125
      snapshot_id           = "snap-07e0e57efb357544f"
      volume_type           = "gp3"
    }
  }
  block_device_mappings {
    device_name = "/dev/sdb"
    ebs {
      volume_size           = 3
      delete_on_termination = true
      iops                  = 125
      snapshot_id           = "snap-09ea2286096455ff2"
      volume_type           = "gp3"
    }
  }
  block_device_mappings {
    device_name = "/dev/sdf"
    ebs {
      volume_size           = 30
      delete_on_termination = true
      iops                  = 125
      snapshot_id           = "snap-092a76b6f3fe5a5cf"
      volume_type           = "gp3"
    }
  }
  iam_instance_profile {
    name = "deld-service-discovery-instance-role"
  }
  image_id               = "ami-0a51ce36cd62cf5fc"
  instance_type          = "t2.micro"
  key_name               = "deld-ff"
  vpc_security_group_ids = [aws_security_group.sg-5703f73d.id]
  user_data              = filebase64("${path.module}/userdata-scripts/ecs-autoscale-launch-template.sh")
}