resource "aws_instance" "delp2-dspcache03" {
  #checkov:skip=CKV_AWS_79: Ensure Instance Metadata Service Version 1 is not enabled
  #checkov:skip=CKV_AWS_88: EC2 instance should not have public IP.
  #checkov:skip=CKV_AWS_126: Ensure that detailed monitoring is enabled for EC2 instances
  #checkov:skip=CKV_AWS_135: Ensure that EC2 is EBS optimized
  #checkov:skip=CKV_AWS_8: Ensure all data stored in the Launch configuration or instance Elastic Blocks Store is securely encrypted
  ami                         = "ami-064831802eae3c1b0"
  instance_type               = "t3.medium"
  iam_instance_profile        = "delp2-delivery-util-ec2-role"
  vpc_security_group_ids      = ["sg-0f4095ac6b4a5bf40", "sg-01a9df8d9958ec912", "sg-0ee5217058f520ea3", "sg-00b2d0a21eb9319ce"]
  disable_api_termination     = "true"
  subnet_id                   = aws_subnet.subnet-081aec8de9e5335b3.id
  associate_public_ip_address = "true"
  key_name                    = "delp2-ff"
  tags = {
    "Name"           = "delp2-dspcache03",
    "Business-Unit"  = "Delivery-Services",
    "Project-Code"   = "SME-2000-0306B"
    "Project-Name"   = "Delivery-Prod"
    "Environment"    = "Prod",
    "SERVER_TYPE"    = "EC2",
    "OS"             = "AL3",
    "Patch Group"    = "General",
    "CLOPS_APPROVED" = "YES",
    "ME-Joined"      = "NO",
    "OPS"            = "STND",
    "DATA"           = "NORMAL",
    "Owner"          = "vijay.subramaniam@sonymusic.com",
    "Terraform"      = "True",
    "CLOPS_FW"       = "YES",
    "map-migrated"   = "migKNBMDMW06I"
  }
  lifecycle { ignore_changes = [user_data] }
}






