{% set config = merged_configs.get('google_filestore_instance', {}) %}
# Compliance: {{ compliance_comments.get('google_filestore_instance', []) | join(', ') }}
resource "google_filestore_instance" "main" {
  name     = "{{ config.get('name', '${var.project_id}-filestore') }}"
  project  = var.project_id
  location = "{{ config.get('location', '${var.region}-a') }}"
  tier     = "{{ config.get('tier', 'BASIC_HDD') }}"

  file_shares {
    name       = "{{ config.get('share_name', 'share') }}"
    capacity_gb = {{ config.get('capacity_gb', 1024) }}
  }

  networks {
    network = "{{ config.get('network', 'default') }}"
    modes   = ["{{ config.get('network_mode', 'MODE_IPV4') }}"]
  }
}
