generated from cloudposse/terraform-example-module
-
-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Labels
bug🐛 An issue with the system🐛 An issue with the system
Description
Kafka brokers are only using the default security groups. Passing in variable security_groups is not being used.
main.tf
resource "aws_msk_cluster" "default" {
count = module.this.enabled ? 1 : 0
cluster_name = module.this.id
kafka_version = var.kafka_version
number_of_broker_nodes = var.number_of_broker_nodes
enhanced_monitoring = var.enhanced_monitoring
broker_node_group_info {
instance_type = var.broker_instance_type
ebs_volume_size = var.broker_volume_size
client_subnets = var.subnet_ids
security_groups = aws_security_group.default.*.id
}
}Line security_groups = aws_security_group.default.*.id does not add variable security_groups. Maybe replace with security_groups = concat(aws_security_group.default.*.id, var.security_groups)
Metadata
Metadata
Assignees
Labels
bug🐛 An issue with the system🐛 An issue with the system