Skip to content

Commit 09c3e84

Browse files
guivinbryantbiggs
andauthored
feat: Add bootstrap_brokers_vpc_connectivity_* to outputs (terraform-aws-modules#54)
Co-authored-by: Bryant Biggs <[email protected]>
1 parent 0e65103 commit 09c3e84

File tree

9 files changed

+101
-1
lines changed

9 files changed

+101
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.99.0
3+
rev: v1.99.1
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_docs

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ No modules.
240240
| <a name="output_bootstrap_brokers_sasl_iam"></a> [bootstrap\_brokers\_sasl\_iam](#output\_bootstrap\_brokers\_sasl\_iam) | One or more DNS names (or IP addresses) and SASL IAM port pairs. This attribute will have a value if `encryption_in_transit_client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication_sasl_iam` is set to `true` |
241241
| <a name="output_bootstrap_brokers_sasl_scram"></a> [bootstrap\_brokers\_sasl\_scram](#output\_bootstrap\_brokers\_sasl\_scram) | One or more DNS names (or IP addresses) and SASL SCRAM port pairs. This attribute will have a value if `encryption_in_transit_client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication_sasl_scram` is set to `true` |
242242
| <a name="output_bootstrap_brokers_tls"></a> [bootstrap\_brokers\_tls](#output\_bootstrap\_brokers\_tls) | One or more DNS names (or IP addresses) and TLS port pairs. This attribute will have a value if `encryption_in_transit_client_broker` is set to `TLS_PLAINTEXT` or `TLS` |
243+
| <a name="output_bootstrap_brokers_vpc_connectivity"></a> [bootstrap\_brokers\_vpc\_connectivity](#output\_bootstrap\_brokers\_vpc\_connectivity) | Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster |
244+
| <a name="output_bootstrap_brokers_vpc_connectivity_sasl_iam"></a> [bootstrap\_brokers\_vpc\_connectivity\_sasl\_iam](#output\_bootstrap\_brokers\_vpc\_connectivity\_sasl\_iam) | One or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity |
245+
| <a name="output_bootstrap_brokers_vpc_connectivity_sasl_scram"></a> [bootstrap\_brokers\_vpc\_connectivity\_sasl\_scram](#output\_bootstrap\_brokers\_vpc\_connectivity\_sasl\_scram) | One or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity |
246+
| <a name="output_bootstrap_brokers_vpc_connectivity_tls"></a> [bootstrap\_brokers\_vpc\_connectivity\_tls](#output\_bootstrap\_brokers\_vpc\_connectivity\_tls) | One or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity |
243247
| <a name="output_cluster_name"></a> [cluster\_name](#output\_cluster\_name) | Name of the MSK cluster |
244248
| <a name="output_cluster_uuid"></a> [cluster\_uuid](#output\_cluster\_uuid) | UUID of the MSK cluster, for use in IAM policies |
245249
| <a name="output_configuration_arn"></a> [configuration\_arn](#output\_configuration\_arn) | Amazon Resource Name (ARN) of the configuration |

examples/basic/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ No inputs.
6767
| <a name="output_bootstrap_brokers_sasl_iam"></a> [bootstrap\_brokers\_sasl\_iam](#output\_bootstrap\_brokers\_sasl\_iam) | One or more DNS names (or IP addresses) and SASL IAM port pairs. This attribute will have a value if `encryption_in_transit_client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication_sasl_iam` is set to `true` |
6868
| <a name="output_bootstrap_brokers_sasl_scram"></a> [bootstrap\_brokers\_sasl\_scram](#output\_bootstrap\_brokers\_sasl\_scram) | One or more DNS names (or IP addresses) and SASL SCRAM port pairs. This attribute will have a value if `encryption_in_transit_client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication_sasl_scram` is set to `true` |
6969
| <a name="output_bootstrap_brokers_tls"></a> [bootstrap\_brokers\_tls](#output\_bootstrap\_brokers\_tls) | One or more DNS names (or IP addresses) and TLS port pairs. This attribute will have a value if `encryption_in_transit_client_broker` is set to `TLS_PLAINTEXT` or `TLS` |
70+
| <a name="output_bootstrap_brokers_vpc_connectivity"></a> [bootstrap\_brokers\_vpc\_connectivity](#output\_bootstrap\_brokers\_vpc\_connectivity) | Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster |
71+
| <a name="output_bootstrap_brokers_vpc_connectivity_sasl_iam"></a> [bootstrap\_brokers\_vpc\_connectivity\_sasl\_iam](#output\_bootstrap\_brokers\_vpc\_connectivity\_sasl\_iam) | One or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity |
72+
| <a name="output_bootstrap_brokers_vpc_connectivity_sasl_scram"></a> [bootstrap\_brokers\_vpc\_connectivity\_sasl\_scram](#output\_bootstrap\_brokers\_vpc\_connectivity\_sasl\_scram) | One or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity |
73+
| <a name="output_bootstrap_brokers_vpc_connectivity_tls"></a> [bootstrap\_brokers\_vpc\_connectivity\_tls](#output\_bootstrap\_brokers\_vpc\_connectivity\_tls) | One or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity |
7074
| <a name="output_cluster_name"></a> [cluster\_name](#output\_cluster\_name) | Name of the MSK cluster |
7175
| <a name="output_cluster_uuid"></a> [cluster\_uuid](#output\_cluster\_uuid) | UUID of the MSK cluster, for use in IAM policies |
7276
| <a name="output_configuration_arn"></a> [configuration\_arn](#output\_configuration\_arn) | Amazon Resource Name (ARN) of the configuration |

examples/basic/outputs.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,26 @@ output "bootstrap_brokers_public_tls" {
5252
value = module.msk_cluster.bootstrap_brokers_public_tls
5353
}
5454

55+
output "bootstrap_brokers_vpc_connectivity" {
56+
description = "Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster"
57+
value = module.msk_cluster.bootstrap_brokers_vpc_connectivity
58+
}
59+
60+
output "bootstrap_brokers_vpc_connectivity_sasl_iam" {
61+
description = "One or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity"
62+
value = module.msk_cluster.bootstrap_brokers_vpc_connectivity_sasl_iam
63+
}
64+
65+
output "bootstrap_brokers_vpc_connectivity_sasl_scram" {
66+
description = "One or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity"
67+
value = module.msk_cluster.bootstrap_brokers_vpc_connectivity_sasl_scram
68+
}
69+
70+
output "bootstrap_brokers_vpc_connectivity_tls" {
71+
description = "One or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity"
72+
value = module.msk_cluster.bootstrap_brokers_vpc_connectivity_tls
73+
}
74+
5575
output "cluster_name" {
5676
description = "Name of the MSK cluster"
5777
value = module.msk_cluster.cluster_name

examples/complete/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ No inputs.
7676
| <a name="output_bootstrap_brokers_sasl_iam"></a> [bootstrap\_brokers\_sasl\_iam](#output\_bootstrap\_brokers\_sasl\_iam) | One or more DNS names (or IP addresses) and SASL IAM port pairs. This attribute will have a value if `encryption_in_transit_client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication_sasl_iam` is set to `true` |
7777
| <a name="output_bootstrap_brokers_sasl_scram"></a> [bootstrap\_brokers\_sasl\_scram](#output\_bootstrap\_brokers\_sasl\_scram) | One or more DNS names (or IP addresses) and SASL SCRAM port pairs. This attribute will have a value if `encryption_in_transit_client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication_sasl_scram` is set to `true` |
7878
| <a name="output_bootstrap_brokers_tls"></a> [bootstrap\_brokers\_tls](#output\_bootstrap\_brokers\_tls) | One or more DNS names (or IP addresses) and TLS port pairs. This attribute will have a value if `encryption_in_transit_client_broker` is set to `TLS_PLAINTEXT` or `TLS` |
79+
| <a name="output_bootstrap_brokers_vpc_connectivity"></a> [bootstrap\_brokers\_vpc\_connectivity](#output\_bootstrap\_brokers\_vpc\_connectivity) | Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster |
80+
| <a name="output_bootstrap_brokers_vpc_connectivity_sasl_iam"></a> [bootstrap\_brokers\_vpc\_connectivity\_sasl\_iam](#output\_bootstrap\_brokers\_vpc\_connectivity\_sasl\_iam) | One or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity |
81+
| <a name="output_bootstrap_brokers_vpc_connectivity_sasl_scram"></a> [bootstrap\_brokers\_vpc\_connectivity\_sasl\_scram](#output\_bootstrap\_brokers\_vpc\_connectivity\_sasl\_scram) | One or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity |
82+
| <a name="output_bootstrap_brokers_vpc_connectivity_tls"></a> [bootstrap\_brokers\_vpc\_connectivity\_tls](#output\_bootstrap\_brokers\_vpc\_connectivity\_tls) | One or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity |
7983
| <a name="output_cluster_name"></a> [cluster\_name](#output\_cluster\_name) | Name of the MSK cluster |
8084
| <a name="output_cluster_uuid"></a> [cluster\_uuid](#output\_cluster\_uuid) | UUID of the MSK cluster, for use in IAM policies |
8185
| <a name="output_configuration_arn"></a> [configuration\_arn](#output\_configuration\_arn) | Amazon Resource Name (ARN) of the configuration |

examples/complete/outputs.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,26 @@ output "bootstrap_brokers_public_tls" {
5252
value = module.msk_cluster.bootstrap_brokers_public_tls
5353
}
5454

55+
output "bootstrap_brokers_vpc_connectivity" {
56+
description = "Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster"
57+
value = module.msk_cluster.bootstrap_brokers_vpc_connectivity
58+
}
59+
60+
output "bootstrap_brokers_vpc_connectivity_sasl_iam" {
61+
description = "One or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity"
62+
value = module.msk_cluster.bootstrap_brokers_vpc_connectivity_sasl_iam
63+
}
64+
65+
output "bootstrap_brokers_vpc_connectivity_sasl_scram" {
66+
description = "One or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity"
67+
value = module.msk_cluster.bootstrap_brokers_vpc_connectivity_sasl_scram
68+
}
69+
70+
output "bootstrap_brokers_vpc_connectivity_tls" {
71+
description = "One or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity"
72+
value = module.msk_cluster.bootstrap_brokers_vpc_connectivity_tls
73+
}
74+
5575
output "cluster_name" {
5676
description = "Name of the MSK cluster"
5777
value = module.msk_cluster.cluster_name

examples/connect/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ No inputs.
7070
| <a name="output_bootstrap_brokers_sasl_iam"></a> [bootstrap\_brokers\_sasl\_iam](#output\_bootstrap\_brokers\_sasl\_iam) | One or more DNS names (or IP addresses) and SASL IAM port pairs. This attribute will have a value if `encryption_in_transit_client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication_sasl_iam` is set to `true` |
7171
| <a name="output_bootstrap_brokers_sasl_scram"></a> [bootstrap\_brokers\_sasl\_scram](#output\_bootstrap\_brokers\_sasl\_scram) | One or more DNS names (or IP addresses) and SASL SCRAM port pairs. This attribute will have a value if `encryption_in_transit_client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication_sasl_scram` is set to `true` |
7272
| <a name="output_bootstrap_brokers_tls"></a> [bootstrap\_brokers\_tls](#output\_bootstrap\_brokers\_tls) | One or more DNS names (or IP addresses) and TLS port pairs. This attribute will have a value if `encryption_in_transit_client_broker` is set to `TLS_PLAINTEXT` or `TLS` |
73+
| <a name="output_bootstrap_brokers_vpc_connectivity"></a> [bootstrap\_brokers\_vpc\_connectivity](#output\_bootstrap\_brokers\_vpc\_connectivity) | Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster |
74+
| <a name="output_bootstrap_brokers_vpc_connectivity_sasl_iam"></a> [bootstrap\_brokers\_vpc\_connectivity\_sasl\_iam](#output\_bootstrap\_brokers\_vpc\_connectivity\_sasl\_iam) | One or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity |
75+
| <a name="output_bootstrap_brokers_vpc_connectivity_sasl_scram"></a> [bootstrap\_brokers\_vpc\_connectivity\_sasl\_scram](#output\_bootstrap\_brokers\_vpc\_connectivity\_sasl\_scram) | One or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity |
76+
| <a name="output_bootstrap_brokers_vpc_connectivity_tls"></a> [bootstrap\_brokers\_vpc\_connectivity\_tls](#output\_bootstrap\_brokers\_vpc\_connectivity\_tls) | One or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity |
7377
| <a name="output_cluster_name"></a> [cluster\_name](#output\_cluster\_name) | Name of the MSK cluster |
7478
| <a name="output_cluster_uuid"></a> [cluster\_uuid](#output\_cluster\_uuid) | UUID of the MSK cluster, for use in IAM policies |
7579
| <a name="output_configuration_arn"></a> [configuration\_arn](#output\_configuration\_arn) | Amazon Resource Name (ARN) of the configuration |

examples/connect/outputs.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,26 @@ output "bootstrap_brokers_public_tls" {
5252
value = module.msk_cluster.bootstrap_brokers_public_tls
5353
}
5454

55+
output "bootstrap_brokers_vpc_connectivity" {
56+
description = "Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster"
57+
value = module.msk_cluster.bootstrap_brokers_vpc_connectivity
58+
}
59+
60+
output "bootstrap_brokers_vpc_connectivity_sasl_iam" {
61+
description = "One or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity"
62+
value = module.msk_cluster.bootstrap_brokers_vpc_connectivity_sasl_iam
63+
}
64+
65+
output "bootstrap_brokers_vpc_connectivity_sasl_scram" {
66+
description = "One or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity"
67+
value = module.msk_cluster.bootstrap_brokers_vpc_connectivity_sasl_scram
68+
}
69+
70+
output "bootstrap_brokers_vpc_connectivity_tls" {
71+
description = "One or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity"
72+
value = module.msk_cluster.bootstrap_brokers_vpc_connectivity_tls
73+
}
74+
5575
output "cluster_name" {
5676
description = "Name of the MSK cluster"
5777
value = module.msk_cluster.cluster_name

outputs.tf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,30 @@ output "bootstrap_brokers_public_tls" {
6161
value = try(aws_msk_cluster.this[0].bootstrap_brokers_public_tls, null)
6262
}
6363

64+
output "bootstrap_brokers_vpc_connectivity" {
65+
description = "Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster"
66+
value = compact([
67+
try(aws_msk_cluster.this[0].bootstrap_brokers_vpc_connectivity_sasl_iam, null),
68+
try(aws_msk_cluster.this[0].bootstrap_brokers_vpc_connectivity_sasl_scram, null),
69+
try(aws_msk_cluster.this[0].bootstrap_brokers_vpc_connectivity_tls, null),
70+
])
71+
}
72+
73+
output "bootstrap_brokers_vpc_connectivity_sasl_iam" {
74+
description = "One or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity"
75+
value = try(aws_msk_cluster.this[0].bootstrap_brokers_vpc_connectivity_sasl_iam, null)
76+
}
77+
78+
output "bootstrap_brokers_vpc_connectivity_sasl_scram" {
79+
description = "One or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity"
80+
value = try(aws_msk_cluster.this[0].bootstrap_brokers_vpc_connectivity_sasl_scram, null)
81+
}
82+
83+
output "bootstrap_brokers_vpc_connectivity_tls" {
84+
description = "One or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity"
85+
value = try(aws_msk_cluster.this[0].bootstrap_brokers_vpc_connectivity_tls, null)
86+
}
87+
6488
output "cluster_name" {
6589
description = "Name of the MSK cluster"
6690
value = try(aws_msk_cluster.this[0].cluster_name, null)

0 commit comments

Comments
 (0)