resource "aws_ecs_cluster" "aomas_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 = "aomas-txmgr-usm-ecs"

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

}

resource "aws_ecs_cluster" "aomas_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 = "aomas-txmgr-kafka-consumer"

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

}

resource "aws_ecs_cluster" "aomas_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 = "aomas-txmgr-ecs"

    tags = {
        "SERVER_TYPE" = "ECS_CLUSTER"
    }

}