{% set config = merged_configs.get('aws_cloudwatch_event_bus', {}) %}
{% set comments = compliance_comments.get('aws_cloudwatch_event_bus', []) %}
# ------------------------------------------------------------------------------
# EventBridge Custom Event Bus
# ------------------------------------------------------------------------------
{% for comment in comments %}
# {{ comment }}
{% endfor %}

resource "aws_cloudwatch_event_bus" "this" {
  name = "{{ config.get('name', project_id ~ '-bus') }}"

  tags = {
    Name      = "{{ config.get('name', project_id ~ '-bus') }}"
    ManagedBy = "complyform"
  }
}
