resource "aws_ecs_cluster" "aomad_txmgr_usm_ecs" {
  # checkov:skip=CKV_AWS_65: Ensure container insights are enabled on ECS cluster
  # checkov:skip=CKV_AWS_224: Ensure ECS Cluster logging is enabled and client to container communication uses CMK
  name = "aomad-txmgr-usm-ecs"

  configuration {
    execute_command_configuration {
      logging    = "DEFAULT"
      kms_key_id = null
    }
  }

}

resource "aws_ecs_cluster" "aomad_txmgr_kafka_consumer" {
  # checkov:skip=CKV_AWS_65: Ensure container insights are enabled on ECS cluster
  # checkov:skip=CKV_AWS_224: Ensure ECS Cluster logging is enabled and client to container communication uses CMK
  name = "aomad-txmgr-kafka-consumer"

  configuration {
    execute_command_configuration {
      logging    = "DEFAULT"
      kms_key_id = null
    }
  }

}

resource "aws_ecs_cluster" "aomad2_txmgr_ecs" {
  # checkov:skip=CKV_AWS_65: Ensure container insights are enabled on ECS cluster
  # checkov:skip=CKV_AWS_224: Ensure ECS Cluster logging is enabled and client to container communication uses CMK
  name = "aomad2-txmgr-ecs"

  tags = {
    "SERVER_TYPE" = "ECS_CLUSTER"
  }

}