{% set config = merged_configs.get('azurerm_storage_container', {}) %}
{% set comments = compliance_comments.get('azurerm_storage_container', []) %}
# ------------------------------------------------------------------------------
# Azure Storage Container
# ------------------------------------------------------------------------------
{% for comment in comments %}
# {{ comment }}
{% endfor %}

resource "azurerm_storage_container" "this" {
  name                  = "{{ config.get('name', project_id ~ '-container') }}"
  storage_account_id    = azurerm_storage_account.this.id
  container_access_type = "{{ config.get('container_access_type', 'private') }}"

  {% if config.get('default_encryption_scope') %}
  default_encryption_scope = "{{ config.default_encryption_scope }}"
  {% endif %}
}
