resource "aws_instance" "betabase-d-ecs" {
  # checkov:skip=CKV_AWS_126: Ensure that detailed monitoring is enabled for EC2 instances
  # checkov:skip=CKV_AWS_79: Ensure Instance Metadata Service Version 1 is not enabled
  # 
  ami                                  = "ami-06c19b0ed373d351c"
  associate_public_ip_address          = false
  availability_zone                    = "eu-central-1a"
  disable_api_stop                     = false
  disable_api_termination              = false
  ebs_optimized                        = true
  get_password_data                    = false
  hibernation                          = false
  host_id                              = null
  host_resource_group_arn              = null
  iam_instance_profile                 = "betabase-d-ECS-Instance-Role"
  instance_initiated_shutdown_behavior = "stop"
  instance_type                        = "m5.2xlarge"
  #ipv6_address_count                   = 0
  #ipv6_addresses                       = []
  key_name                             = "aoma-d1-27May2019"
  monitoring                           = false
  placement_group                      = null
  placement_partition_number           = 0
  private_ip                           = "10.11.108.74"
  secondary_private_ips                = []
  security_groups                      = []
  source_dest_check                    = true
  subnet_id                            = "subnet-0d49622c8d9600054"
  tags = {
    Business-Unit  = "AOMA-Core"
    CLOPS_APPROVED = "YES"
    CLOPS_FW       = "NO"
    DATA           = "NORMAL"
    Environment    = "Dev"
    ME-Joined      = "NO"
    Name           = "betabase-d-ecs"
    OPS            = "STND"
    OS             = "AL3"
    Owner          = "matt.carpenter.asburymedia@sonymusic.com"
    "Patch Group"  = "Container"
    Project-Code   = "SME-BETA-BASE"
    Project-Name   = "SME-BETA-BASE"
    SERVER_TYPE    = "ECS"
    Terraform      = "False"
  }
  tags_all = {
    Business-Unit  = "AOMA-Core"
    CLOPS_APPROVED = "YES"
    CLOPS_FW       = "NO"
    DATA           = "NORMAL"
    Environment    = "Dev"
    ME-Joined      = "NO"
    Name           = "betabase-d-ecs"
    OPS            = "STND"
    OS             = "AL3"
    Owner          = "matt.carpenter.asburymedia@sonymusic.com"
    "Patch Group"  = "Container"
    Project-Code   = "SME-BETA-BASE"
    Project-Name   = "SME-BETA-BASE"
    SERVER_TYPE    = "ECS"
    Terraform      = "False"
  }
  tenancy                     = "default"
  user_data                   = "b13216215c5c2da424ed18fd831f7ac90d132a41"
  user_data_base64            = null
  user_data_replace_on_change = null
  volume_tags                 = null
  vpc_security_group_ids      = ["sg-09889ed50272e1262"]
  capacity_reservation_specification {
    capacity_reservation_preference = "open"
  }
  cpu_options {
    amd_sev_snp      = null
    core_count       = 4
    threads_per_core = 2
  }
  ebs_block_device {
    delete_on_termination = true
    device_name           = "/dev/sdb"
    encrypted             = true
    iops                  = 3000
    kms_key_id            = "arn:aws:kms:eu-central-1:969009837416:key/5a0553d3-9226-4e17-ae59-83773d785211"
    snapshot_id           = "snap-000de5f18a0ce0254"
    tags                  = {}
    throughput            = 125
    volume_size           = 5
    volume_type           = "gp3"
  }
  ebs_block_device {
    delete_on_termination = true
    device_name           = "/dev/sdc"
    encrypted             = true
    iops                  = 3000
    kms_key_id            = "arn:aws:kms:eu-central-1:969009837416:key/5a0553d3-9226-4e17-ae59-83773d785211"
    snapshot_id           = "snap-0de4954c58d91f671"
    tags                  = {}
    throughput            = 125
    volume_size           = 3
    volume_type           = "gp3"
  }
  ebs_block_device {
    delete_on_termination = true
    device_name           = "/dev/sdd"
    encrypted             = true
    iops                  = 3000
    kms_key_id            = "arn:aws:kms:eu-central-1:969009837416:key/5a0553d3-9226-4e17-ae59-83773d785211"
    snapshot_id           = "snap-01e31b20d0030b4c0"
    tags                  = {}
    throughput            = 125
    volume_size           = 8
    volume_type           = "gp3"
  }
  ebs_block_device {
    delete_on_termination = true
    device_name           = "/dev/sde"
    encrypted             = true
    iops                  = 3000
    kms_key_id            = "arn:aws:kms:eu-central-1:969009837416:key/5a0553d3-9226-4e17-ae59-83773d785211"
    snapshot_id           = "snap-050cc61b56eb2bbde"
    tags                  = {}
    throughput            = 125
    volume_size           = 5
    volume_type           = "gp3"
  }
  enclave_options {
    enabled = false
  }
  maintenance_options {
    auto_recovery = "default"
  }
  metadata_options {
    http_endpoint               = "enabled"
    http_put_response_hop_limit = 1
    http_tokens                 = "optional"
    instance_metadata_tags      = "disabled"
  }
  private_dns_name_options {
    enable_resource_name_dns_a_record    = false
    enable_resource_name_dns_aaaa_record = false
    hostname_type                        = "ip-name"
  }
  root_block_device {
    delete_on_termination = true
    encrypted             = true
    iops                  = 3000
    kms_key_id            = "arn:aws:kms:eu-central-1:969009837416:key/5a0553d3-9226-4e17-ae59-83773d785211"
    tags                  = {}
    throughput            = 125
    volume_size           = 10
    volume_type           = "gp3"
  }

  lifecycle {
    ignore_changes = [ user_data ]
  }
}