resource "aws_ecs_cluster" "aomap_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 = "aomap-txmgr-usm-ecs"

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

}

resource "aws_ecs_cluster" "aomap_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 = "aomap-txmgr-kafka-consumer"

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

  tags = {
    Name = "aomap-txmgr-kafka-consumer"
  }
}

resource "aws_ecs_cluster" "aomap_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 = "aomap-txmgr-ecs"

}