{% set config = merged_configs.get('google_artifact_registry_repository', {}) %}
# Compliance: {{ compliance_comments.get('google_artifact_registry_repository', []) | join(', ') }}
resource "google_artifact_registry_repository" "main" {
  repository_id = "{{ config.get('repository_id', '${var.project_id}-repo') }}"
  project       = var.project_id
  location      = var.region
  format        = "{{ config.get('format', 'DOCKER') }}"
  description   = "{{ config.get('description', 'Managed by ComplyForm') }}"
{% if config.get('kms_key_name') %}

  kms_key_name = {{ config.get('kms_key_name') }}
{% endif %}
}
