Skip to content

Commit 935e49a

Browse files
committed
Divide bootstrap_brokers output for msk-cluster
1 parent 1313e95 commit 935e49a

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

modules/msk-cluster/outputs.tf

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,24 +164,45 @@ output "monitoring" {
164164

165165
output "bootstrap_brokers" {
166166
description = <<EOF
167-
A configuration for connecting to the Kafka cluster.
167+
The information to bootstrap connectivity to the Kafka cluster.
168168
`plaintext` - A comma separated list of one or more hostname:port pairs of kafka brokers suitable to boostrap connectivity to the kafka cluster. Only contains value if `client_encryption_in_transit_mode` is set to PLAINTEXT or TLS_PLAINTEXT. AWS may not always return all endpoints so the values may not be stable across applies.
169169
`sasl_iam` - A comma separated list of one or more DNS names (or IPs) and SASL IAM port pairs. Only contains value if `client_encryption_in_transit_mode` is set to TLS_PLAINTEXT or TLS. AWS may not always return all endpoints so the values may not be stable across applies.
170170
`sasl_scram` - A comma separated list of one or more DNS names (or IPs) and SASL SCRAM port pairs. Only contains value if `client_encryption_in_transit_mode` is set to TLS_PLAINTEXT or TLS. AWS may not always return all endpoints so the values may not be stable across applies.
171171
`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_encryption_in_transit_mode is set to TLS_PLAINTEXT or TLS. AWS may not always return all endpoints so the values may not be stable across applies.
172-
`public_sasl_iam` - A comma separated list of one or more DNS names (or IPs) and SASL IAM port pairs. Only contains value if `client_encryption_in_transit_mode` is set to TLS_PLAINTEXT or TLS and `auth_sasl_iam_enabled` is `true` and `broker_public_access_enabled` is `true`. AWS may not always return all endpoints so the values may not be stable across applies.
173-
`public_sasl_scram` - A comma separated list of one or more DNS names (or IPs) and SASL SCRAM port pairs. Only contains value if `client_encryption_in_transit_mode` is set to TLS_PLAINTEXT or TLS and `auth_sasl_scram_enabled` is `true` and `broker_public_access_enabled` is `true`. AWS may not always return all endpoints so the values may not be stable across applies.
174-
`public_tls` - A comma separated list of one or more DNS names (or IPs) and TLS port pairs. Only contains value if `client_encryption_in_transit_mode` is set to TLS_PLAINTEXT or TLS and `broker_public_access_enabled` is `true`. AWS may not always return all endpoints so the values may not be stable across applies.
175172
EOF
176173
value = {
177174
plaintext = aws_msk_cluster.this.bootstrap_brokers
178175
sasl_iam = aws_msk_cluster.this.bootstrap_brokers_sasl_iam
179176
sasl_scram = aws_msk_cluster.this.bootstrap_brokers_sasl_scram
180177
tls = aws_msk_cluster.this.bootstrap_brokers_tls
178+
}
179+
}
181180

182-
public_sasl_iam = aws_msk_cluster.this.bootstrap_brokers_public_sasl_iam
183-
public_sasl_scram = aws_msk_cluster.this.bootstrap_brokers_public_sasl_scram
184-
public_tls = aws_msk_cluster.this.bootstrap_brokers_public_tls
181+
output "bootstrap_brokers_for_public_access" {
182+
description = <<EOF
183+
The information to bootstrap connectivity to the Kafka cluster for public access.
184+
`sasl_iam` - A comma separated list of one or more DNS names (or IPs) and SASL IAM port pairs. Only contains value if `client_encryption_in_transit_mode` is set to TLS_PLAINTEXT or TLS and `auth_sasl_iam_enabled` is `true` and `broker_public_access_enabled` is `true`. AWS may not always return all endpoints so the values may not be stable across applies.
185+
`sasl_scram` - A comma separated list of one or more DNS names (or IPs) and SASL SCRAM port pairs. Only contains value if `client_encryption_in_transit_mode` is set to TLS_PLAINTEXT or TLS and `auth_sasl_scram_enabled` is `true` and `broker_public_access_enabled` is `true`. AWS may not always return all endpoints so the values may not be stable across applies.
186+
`tls` - A comma separated list of one or more DNS names (or IPs) and TLS port pairs. Only contains value if `client_encryption_in_transit_mode` is set to TLS_PLAINTEXT or TLS and `broker_public_access_enabled` is `true`. AWS may not always return all endpoints so the values may not be stable across applies.
187+
EOF
188+
value = {
189+
sasl_iam = aws_msk_cluster.this.bootstrap_brokers_public_sasl_iam
190+
sasl_scram = aws_msk_cluster.this.bootstrap_brokers_public_sasl_scram
191+
tls = aws_msk_cluster.this.bootstrap_brokers_public_tls
192+
}
193+
}
194+
195+
output "bootstrap_brokers_for_vpc_connectivity" {
196+
description = <<EOF
197+
The information to bootstrap connectivity to the Kafka cluster for VPC connectivity.
198+
`sasl_iam` - A comma separated list of one or more DNS names (or IPs) and SASL IAM port pairs for VPC connectivity. AWS may not always return all endpoints so the values may not be stable across applies.
199+
`sasl_scram` - A comma separated list of one or more DNS names (or IPs) and SASL SCRAM port pairs for VPC connectivity. AWS may not always return all endpoints so the values may not be stable across applies.
200+
`tls` - A comma separated list of one or more DNS names (or IPs) and TLS port pairs for VPC connectivity. AWS may not always return all endpoints so the values may not be stable across applies.
201+
EOF
202+
value = {
203+
sasl_iam = aws_msk_cluster.this.bootstrap_brokers_vpc_connectivity_sasl_iam
204+
sasl_scram = aws_msk_cluster.this.bootstrap_brokers_vpc_connectivity_sasl_scram
205+
tls = aws_msk_cluster.this.bootstrap_brokers_vpc_connectivity_tls
185206
}
186207
}
187208

0 commit comments

Comments
 (0)