diff --git a/README.md b/README.md
index ae38348..b0d1eee 100644
--- a/README.md
+++ b/README.md
@@ -241,6 +241,7 @@ No modules.
| [domain\_endpoint\_v2](#output\_domain\_endpoint\_v2) | V2 domain endpoint that works with both IPv4 and IPv6 addresses, used to submit index, search, and data upload requests |
| [domain\_endpoint\_v2\_hosted\_zone\_id](#output\_domain\_endpoint\_v2\_hosted\_zone\_id) | Dual stack hosted zone ID for the domain. |
| [domain\_id](#output\_domain\_id) | The unique identifier for the domain |
+| [domain\_name](#output\_domain\_name) | The name of the domain |
| [outbound\_connections](#output\_outbound\_connections) | Map of outbound connections created and their attributes |
| [package\_associations](#output\_package\_associations) | Map of package associations created and their attributes |
| [security\_group\_arn](#output\_security\_group\_arn) | Amazon Resource Name (ARN) of the security group |
diff --git a/examples/complete/README.md b/examples/complete/README.md
index f7709ed..2b33bc3 100644
--- a/examples/complete/README.md
+++ b/examples/complete/README.md
@@ -61,6 +61,7 @@ No inputs.
| [domain\_dashboard\_endpoint](#output\_domain\_dashboard\_endpoint) | Domain-specific endpoint for Dashboard without https scheme |
| [domain\_endpoint](#output\_domain\_endpoint) | Domain-specific endpoint used to submit index, search, and data upload requests |
| [domain\_id](#output\_domain\_id) | The unique identifier for the domain |
+| [domain\_name](#output\_domain\_name) | The name of the domain |
| [outbound\_connections](#output\_outbound\_connections) | Map of outbound connections created and their attributes |
| [package\_associations](#output\_package\_associations) | Map of package associations created and their attributes |
| [security\_group\_arn](#output\_security\_group\_arn) | Amazon Resource Name (ARN) of the security group |
diff --git a/examples/complete/outputs.tf b/examples/complete/outputs.tf
index e5d300d..0b2a0f5 100644
--- a/examples/complete/outputs.tf
+++ b/examples/complete/outputs.tf
@@ -12,6 +12,11 @@ output "domain_id" {
value = module.opensearch.domain_id
}
+output "domain_name" {
+ description = "The name of the domain"
+ value = module.opensearch.domain_name
+}
+
output "domain_endpoint" {
description = "Domain-specific endpoint used to submit index, search, and data upload requests"
value = module.opensearch.domain_endpoint
diff --git a/outputs.tf b/outputs.tf
index eb706de..0b29754 100644
--- a/outputs.tf
+++ b/outputs.tf
@@ -12,6 +12,11 @@ output "domain_id" {
value = try(aws_opensearch_domain.this[0].domain_id, null)
}
+output "domain_name" {
+ description = "The name of the domain"
+ value = try(aws_opensearch_domain.this[0].domain_name, null)
+}
+
output "domain_endpoint" {
description = "Domain-specific endpoint used to submit index, search, and data upload requests"
value = try(aws_opensearch_domain.this[0].endpoint, null)