diff --git a/README.md b/README.md index d29a609..174e74f 100644 --- a/README.md +++ b/README.md @@ -244,6 +244,7 @@ No modules. | Name | Description | |------|-------------| +| [name](#output\_name) | Cluster name. | | [id](#output\_id) | Cluster name (resource ID). | | [arn](#output\_arn) | Cluster ARN. | | [endpoint](#output\_endpoint) | Cluster API server endpoint. | diff --git a/examples/simple/outputs.tf b/examples/simple/outputs.tf index ec9fb9a..f95db46 100644 --- a/examples/simple/outputs.tf +++ b/examples/simple/outputs.tf @@ -14,7 +14,7 @@ output "resource_name" { output "cluster_name" { description = "EKS cluster name (for test validation)" - value = module.eks_cluster.id + value = module.eks_cluster.name } output "cluster_arn" { diff --git a/outputs.tf b/outputs.tf index e447c59..8733dda 100644 --- a/outputs.tf +++ b/outputs.tf @@ -3,6 +3,11 @@ # Outputs ############################ +output "name" { + description = "Cluster name." + value = aws_eks_cluster.this.name +} + output "id" { description = "Cluster name (resource ID)." value = aws_eks_cluster.this.id