From fcfa266a3c370806c461c7411c6cc31ca6d7d1d8 Mon Sep 17 00:00:00 2001 From: Angel Abad Date: Sun, 17 Sep 2023 11:11:45 +0200 Subject: [PATCH] feat: Add new output for cluster_name --- README.md | 1 + main.tf | 2 +- outputs.tf | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 491e345..4157c07 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,7 @@ No modules. | [bootstrap\_brokers\_sasl\_iam](#output\_bootstrap\_brokers\_sasl\_iam) | A comma separated list of one or more DNS names (or IPs) and TLS port pairs kafka brokers suitable to boostrap connectivity to the kafka cluster. Only contains value if client\_broker encryption in transit is set to SASL IAM. | | [bootstrap\_brokers\_sasl\_scram](#output\_bootstrap\_brokers\_sasl\_scram) | A comma separated list of one or more DNS names (or IPs) and TLS port pairs kafka brokers suitable to boostrap connectivity to the kafka cluster. Only contains value if client\_broker encryption in transit is set to SASL SCRAM. | | [bootstrap\_brokers\_tls](#output\_bootstrap\_brokers\_tls) | A comma separated list of one or more DNS names (or IPs) and TLS port pairs kafka brokers suitable to boostrap connectivity to the kafka cluster. Only contains value if client\_broker encryption in transit is set to TLS\_PLAINTEXT or TLS. | +| [cluster\_name](#output\_cluster\_name) | Msk cluster name | | [current\_version](#output\_current\_version) | Current version of the MSK Cluster used for updates, e.g. K13V1IB3VIYZZH | | [default\_security\_group](#output\_default\_security\_group) | Msk cluster default security group id. | | [encryption\_at\_rest\_kms\_key\_arn](#output\_encryption\_at\_rest\_kms\_key\_arn) | The ARN of the KMS key used for encryption at rest of the broker data volumes. | diff --git a/main.tf b/main.tf index 3911d1c..72f6eaa 100644 --- a/main.tf +++ b/main.tf @@ -115,7 +115,7 @@ resource "aws_msk_cluster" "this" { volume_size = var.volume_size - dynamic "provisioned_throughput" { + dynamic "provisioned_throughput" { for_each = var.provisioned_volume_throughput[*] content { enabled = true diff --git a/outputs.tf b/outputs.tf index 0f6b5fa..924db98 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,3 +1,7 @@ +output "cluster_name" { + description = "Msk cluster name" + value = aws_msk_cluster.this.cluster_name +} output "default_security_group" { description = "Msk cluster default security group id." value = aws_security_group.this.id