-
-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathoutputs.tf
More file actions
217 lines (175 loc) 路 9.29 KB
/
Copy pathoutputs.tf
File metadata and controls
217 lines (175 loc) 路 9.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
################################################################################
# Cluster
################################################################################
output "arn" {
description = "Amazon Resource Name (ARN) of the MSK cluster"
value = try(aws_msk_cluster.this[0].arn, null)
}
output "bootstrap_brokers" {
description = "Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster"
value = compact([
try(aws_msk_cluster.this[0].bootstrap_brokers, null),
try(aws_msk_cluster.this[0].bootstrap_brokers_sasl_iam, null),
try(aws_msk_cluster.this[0].bootstrap_brokers_sasl_scram, null),
try(aws_msk_cluster.this[0].bootstrap_brokers_tls, null),
])
}
output "bootstrap_brokers_plaintext" {
description = "Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster. Contains a value if `encryption_in_transit_client_broker` is set to `PLAINTEXT` or `TLS_PLAINTEXT`"
value = try(aws_msk_cluster.this[0].bootstrap_brokers, null)
}
output "bootstrap_brokers_sasl_iam" {
description = "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`"
value = try(aws_msk_cluster.this[0].bootstrap_brokers_sasl_iam, null)
}
output "bootstrap_brokers_sasl_scram" {
description = "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`"
value = try(aws_msk_cluster.this[0].bootstrap_brokers_sasl_scram, null)
}
output "bootstrap_brokers_tls" {
description = "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`"
value = try(aws_msk_cluster.this[0].bootstrap_brokers_tls, null)
}
output "bootstrap_brokers_public" {
description = "Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster"
value = compact([
try(aws_msk_cluster.this[0].bootstrap_brokers_public_sasl_iam, null),
try(aws_msk_cluster.this[0].bootstrap_brokers_public_sasl_scram, null),
try(aws_msk_cluster.this[0].bootstrap_brokers_public_tls, null),
])
}
output "bootstrap_brokers_public_sasl_iam" {
description = "One or more DNS names (or IP addresses) and SASL IAM port pairs"
value = try(aws_msk_cluster.this[0].bootstrap_brokers_public_sasl_iam, null)
}
output "bootstrap_brokers_public_sasl_scram" {
description = "One or more DNS names (or IP addresses) and SASL SCRAM port pairs"
value = try(aws_msk_cluster.this[0].bootstrap_brokers_public_sasl_scram, null)
}
output "bootstrap_brokers_public_tls" {
description = "One or more DNS names (or IP addresses) and TLS port pairs"
value = try(aws_msk_cluster.this[0].bootstrap_brokers_public_tls, null)
}
output "bootstrap_brokers_vpc_connectivity" {
description = "Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster"
value = compact([
try(aws_msk_cluster.this[0].bootstrap_brokers_vpc_connectivity_sasl_iam, null),
try(aws_msk_cluster.this[0].bootstrap_brokers_vpc_connectivity_sasl_scram, null),
try(aws_msk_cluster.this[0].bootstrap_brokers_vpc_connectivity_tls, null),
])
}
output "bootstrap_brokers_vpc_connectivity_sasl_iam" {
description = "One or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity"
value = try(aws_msk_cluster.this[0].bootstrap_brokers_vpc_connectivity_sasl_iam, null)
}
output "bootstrap_brokers_vpc_connectivity_sasl_scram" {
description = "One or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity"
value = try(aws_msk_cluster.this[0].bootstrap_brokers_vpc_connectivity_sasl_scram, null)
}
output "bootstrap_brokers_vpc_connectivity_tls" {
description = "One or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity"
value = try(aws_msk_cluster.this[0].bootstrap_brokers_vpc_connectivity_tls, null)
}
output "cluster_name" {
description = "Name of the MSK cluster"
value = try(aws_msk_cluster.this[0].cluster_name, null)
}
output "cluster_uuid" {
description = "UUID of the MSK cluster, for use in IAM policies"
value = try(aws_msk_cluster.this[0].cluster_uuid, null)
}
output "current_version" {
description = "Current version of the MSK Cluster used for updates, e.g. `K13V1IB3VIYZZH`"
value = try(aws_msk_cluster.this[0].current_version, null)
}
output "zookeeper_connect_string" {
description = "A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster. The returned values are sorted alphabetically"
value = try(aws_msk_cluster.this[0].zookeeper_connect_string, null)
}
output "zookeeper_connect_string_tls" {
description = "A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster via TLS. The returned values are sorted alphabetically"
value = try(aws_msk_cluster.this[0].zookeeper_connect_string_tls, null)
}
################################################################################
# VPC Connection
################################################################################
output "vpc_connections" {
description = "A map of output attributes for the VPC connections created"
value = aws_msk_vpc_connection.this
}
################################################################################
# Configuration
################################################################################
output "configuration_arn" {
description = "Amazon Resource Name (ARN) of the configuration"
value = try(aws_msk_configuration.this[0].arn, null)
}
output "configuration_latest_revision" {
description = "Latest revision of the configuration"
value = try(aws_msk_configuration.this[0].latest_revision, null)
}
################################################################################
# Secret(s)
################################################################################
output "scram_secret_association_id" {
description = "Amazon Resource Name (ARN) of the MSK cluster"
value = try(aws_msk_scram_secret_association.this[0].id, null)
}
################################################################################
# CloudWatch Log Group
################################################################################
output "log_group_arn" {
description = "The Amazon Resource Name (ARN) specifying the log group"
value = try(aws_cloudwatch_log_group.this[0].arn, null)
}
################################################################################
# Storage Autoscaling
################################################################################
output "appautoscaling_policy_arn" {
description = "The ARN assigned by AWS to the scaling policy"
value = try(aws_appautoscaling_policy.this[0].arn, null)
}
output "appautoscaling_policy_name" {
description = "The scaling policy's name"
value = try(aws_appautoscaling_policy.this[0].name, null)
}
output "appautoscaling_policy_policy_type" {
description = "The scaling policy's type"
value = try(aws_appautoscaling_policy.this[0].policy_type, null)
}
################################################################################
# Glue Schema Registry & Schema
################################################################################
output "schema_registries" {
description = "A map of output attributes for the schema registries created"
value = aws_glue_registry.this
}
output "schemas" {
description = "A map of output attributes for the schemas created"
value = aws_glue_schema.this
}
################################################################################
# Topics
################################################################################
output "topics" {
description = "A map of output attributes for the MSK topics created"
value = aws_msk_topic.this
}
################################################################################
# Connect Custom Plugin
################################################################################
output "connect_custom_plugins" {
description = "A map of output attributes for the connect custom plugins created"
value = aws_mskconnect_custom_plugin.this
}
################################################################################
# Connect Worker Configuration
################################################################################
output "connect_worker_configuration_arn" {
description = "The Amazon Resource Name (ARN) of the worker configuration"
value = try(aws_mskconnect_worker_configuration.this[0].arn, null)
}
output "connect_worker_configuration_latest_revision" {
description = "An ID of the latest successfully created revision of the worker configuration"
value = try(aws_mskconnect_worker_configuration.this[0].latest_revision, null)
}