@@ -30,7 +30,7 @@ output "kafka_config" {
30
30
31
31
output "broker_security_group_id" {
32
32
description = " The id of security group that were created for the MSK cluster."
33
- value = try (module. security_group . * . id [0 ], null )
33
+ value = try (module. security_group [ * ] . id [0 ], null )
34
34
}
35
35
36
36
output "broker_nodes" {
@@ -51,18 +51,18 @@ output "broker" {
51
51
EOF
52
52
value = {
53
53
size = aws_msk_cluster.this.number_of_broker_nodes
54
- instance_type = aws_msk_cluster.this.broker_node_group_info. 0 .instance_type
54
+ instance_type = aws_msk_cluster.this.broker_node_group_info[ 0 ] .instance_type
55
55
56
- subnets = aws_msk_cluster.this.broker_node_group_info. 0 .client_subnets
56
+ subnets = aws_msk_cluster.this.broker_node_group_info[ 0 ] .client_subnets
57
57
public_access_enabled = var.broker_public_access_enabled
58
- security_groups = aws_msk_cluster.this.broker_node_group_info. 0 .security_groups
59
- default_security_group_id = try (module. security_group . * . id [0 ], null )
58
+ security_groups = aws_msk_cluster.this.broker_node_group_info[ 0 ] .security_groups
59
+ default_security_group_id = try (module. security_group [ * ] . id [0 ], null )
60
60
61
61
volume = {
62
- size = aws_msk_cluster.this.broker_node_group_info. 0 .storage_info. 0 .ebs_storage_info. 0 .volume_size
62
+ size = aws_msk_cluster.this.broker_node_group_info[ 0 ] .storage_info[ 0 ] .ebs_storage_info[ 0 ] .volume_size
63
63
provisioned_throughput = {
64
- enabled = try (aws_msk_cluster. this . broker_node_group_info . 0 . storage_info . 0 . ebs_storage_info . 0 . provisioned_throughput . 0 . enabled , false )
65
- throughput = try (aws_msk_cluster. this . broker_node_group_info . 0 . storage_info . 0 . ebs_storage_info . 0 . provisioned_throughput . 0 . volume_throughput , null )
64
+ enabled = try (aws_msk_cluster. this . broker_node_group_info [ 0 ] . storage_info [ 0 ] . ebs_storage_info [ 0 ] . provisioned_throughput [ 0 ] . enabled , false )
65
+ throughput = try (aws_msk_cluster. this . broker_node_group_info [ 0 ] . storage_info [ 0 ] . ebs_storage_info [ 0 ] . provisioned_throughput [ 0 ] . volume_throughput , null )
66
66
}
67
67
}
68
68
}
@@ -72,21 +72,21 @@ output "auth" {
72
72
description = " A configuration for authentication of the Kafka cluster."
73
73
value = {
74
74
unauthenticated_access = {
75
- enabled = aws_msk_cluster.this.client_authentication. 0 .unauthenticated
75
+ enabled = aws_msk_cluster.this.client_authentication[ 0 ] .unauthenticated
76
76
}
77
77
sasl = {
78
78
iam = {
79
- enabled = aws_msk_cluster.this.client_authentication. 0 .sasl. 0 .iam
79
+ enabled = aws_msk_cluster.this.client_authentication[ 0 ] .sasl[ 0 ] .iam
80
80
}
81
81
scram = {
82
- enabled = aws_msk_cluster.this.client_authentication. 0 .sasl. 0 .scram
82
+ enabled = aws_msk_cluster.this.client_authentication[ 0 ] .sasl[ 0 ] .scram
83
83
kms_key = var.auth_sasl_scram_kms_key
84
84
users = var.auth_sasl_scram_users
85
85
}
86
86
}
87
87
tls = {
88
88
enabled = var.auth_tls_enabled
89
- acm_ca_arns = try (aws_msk_cluster. this . client_authentication . 0 . tls . 0 . certificate_authority_arns , [])
89
+ acm_ca_arns = try (aws_msk_cluster. this . client_authentication [ 0 ] . tls [ 0 ] . certificate_authority_arns , [])
90
90
}
91
91
}
92
92
}
@@ -99,11 +99,11 @@ output "encryption" {
99
99
EOF
100
100
value = {
101
101
at_rest = {
102
- kms_key = aws_msk_cluster.this.encryption_info. 0 .encryption_at_rest_kms_key_arn
102
+ kms_key = aws_msk_cluster.this.encryption_info[ 0 ] .encryption_at_rest_kms_key_arn
103
103
}
104
104
in_transit = {
105
- in_cluster_enabled = aws_msk_cluster.this.encryption_info. 0 .encryption_in_transit. 0 .in_cluster
106
- client_mode = aws_msk_cluster.this.encryption_info. 0 .encryption_in_transit. 0 .client_broker
105
+ in_cluster_enabled = aws_msk_cluster.this.encryption_info[ 0 ] .encryption_in_transit[ 0 ] .in_cluster
106
+ client_mode = aws_msk_cluster.this.encryption_info[ 0 ] .encryption_in_transit[ 0 ] .client_broker
107
107
}
108
108
}
109
109
}
@@ -117,17 +117,17 @@ output "logging" {
117
117
EOF
118
118
value = {
119
119
cloudwatch = {
120
- enabled = aws_msk_cluster.this.logging_info. 0 .broker_logs. 0 .cloudwatch_logs. 0 .enabled
121
- log_group = aws_msk_cluster.this.logging_info. 0 .broker_logs. 0 .cloudwatch_logs. 0 .log_group
120
+ enabled = aws_msk_cluster.this.logging_info[ 0 ] .broker_logs[ 0 ] .cloudwatch_logs[ 0 ] .enabled
121
+ log_group = aws_msk_cluster.this.logging_info[ 0 ] .broker_logs[ 0 ] .cloudwatch_logs[ 0 ] .log_group
122
122
}
123
123
firehose = {
124
- enabled = aws_msk_cluster.this.logging_info. 0 .broker_logs. 0 .firehose. 0 .enabled
125
- delivery_stream = aws_msk_cluster.this.logging_info. 0 .broker_logs. 0 .firehose. 0 .delivery_stream
124
+ enabled = aws_msk_cluster.this.logging_info[ 0 ] .broker_logs[ 0 ] .firehose[ 0 ] .enabled
125
+ delivery_stream = aws_msk_cluster.this.logging_info[ 0 ] .broker_logs[ 0 ] .firehose[ 0 ] .delivery_stream
126
126
}
127
127
s3 = {
128
- enabled = aws_msk_cluster.this.logging_info. 0 .broker_logs. 0 .s3. 0 .enabled
129
- bucket = aws_msk_cluster.this.logging_info. 0 .broker_logs. 0 .s3. 0 .bucket
130
- prefix = aws_msk_cluster.this.logging_info. 0 .broker_logs. 0 .s3. 0 .prefix
128
+ enabled = aws_msk_cluster.this.logging_info[ 0 ] .broker_logs[ 0 ] .s3[ 0 ] .enabled
129
+ bucket = aws_msk_cluster.this.logging_info[ 0 ] .broker_logs[ 0 ] .s3[ 0 ] .bucket
130
+ prefix = aws_msk_cluster.this.logging_info[ 0 ] .broker_logs[ 0 ] .s3[ 0 ] .prefix
131
131
}
132
132
}
133
133
}
@@ -143,8 +143,8 @@ output "monitoring" {
143
143
level = aws_msk_cluster.this.enhanced_monitoring
144
144
}
145
145
prometheus = {
146
- jmx_exporter_enabled = aws_msk_cluster.this.open_monitoring. 0 .prometheus. 0 .jmx_exporter. 0 .enabled_in_broker
147
- node_exporter_enabled = aws_msk_cluster.this.open_monitoring. 0 .prometheus. 0 .node_exporter. 0 .enabled_in_broker
146
+ jmx_exporter_enabled = aws_msk_cluster.this.open_monitoring[ 0 ] .prometheus[ 0 ] .jmx_exporter[ 0 ] .enabled_in_broker
147
+ node_exporter_enabled = aws_msk_cluster.this.open_monitoring[ 0 ] .prometheus[ 0 ] .node_exporter[ 0 ] .enabled_in_broker
148
148
}
149
149
}
150
150
}
0 commit comments