v1.3.0
·
5 commits
to main
since this release
fix: conditionally set service domain outputs when disabled @RoseSecurity (#216)
## what- Previously, service domain output locals were always set, even when the module was disabled. This caused issues with downstream references. Now, these locals are set to null when the module is not enabled, preventing unintended values and improving conditional logic handling.
why
- Resolve the following error:
╷
│ Error: Error in function call
│
│ on .terraform/infra/modules/elasticsearch/main.tf line 11, in locals:
│ 11: aws_service_domain_kibana_endpoint = coalesce(join("", aws_elasticsearch_domain.default[*].kibana_endpoint), join("", aws_opensearch_domain.default[*].dashboard_endpoint))
│ ├────────────────
│ │ while calling coalesce(vals...)
│ │ aws_elasticsearch_domain.default is empty tuple
│ │ aws_opensearch_domain.default is empty tuple
│
│ Call to function "coalesce" failed: no non-null, non-empty-string arguments.
╵- Closes #193