Skip to content

Commit 66021f2

Browse files
committed
feat(opensearch): update TLS policy and add domain_name output
- Changed the default TLS security policy for the OpenSearch domain to "Policy-Min-TLS-1-2-PFS-2023-10" for improved security. - Added a new output "domain_name" to expose the OpenSearch domain name.
1 parent f6909db commit 66021f2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ resource "aws_opensearch_domain" "this" {
179179
custom_endpoint_certificate_arn = try(domain_endpoint_options.value.custom_endpoint_certificate_arn, null)
180180
custom_endpoint_enabled = try(domain_endpoint_options.value.custom_endpoint_enabled, null)
181181
enforce_https = try(domain_endpoint_options.value.enforce_https, true)
182-
tls_security_policy = try(domain_endpoint_options.value.tls_security_policy, "Policy-Min-TLS-1-2-2019-07")
182+
tls_security_policy = try(domain_endpoint_options.value.tls_security_policy, "Policy-Min-TLS-1-2-PFS-2023-10")
183183
}
184184
}
185185

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ output "domain_id" {
1212
value = try(aws_opensearch_domain.this[0].domain_id, null)
1313
}
1414

15+
output "domain_name" {
16+
description = "The name of the domain"
17+
value = try(aws_opensearch_domain.this[0].domain_name, null)
18+
}
19+
1520
output "domain_endpoint" {
1621
description = "Domain-specific endpoint used to submit index, search, and data upload requests"
1722
value = try(aws_opensearch_domain.this[0].endpoint, null)

0 commit comments

Comments
 (0)