broad-zoo-34077
11/29/2023, 2:54 PMcrooked-daybreak-55253
11/29/2023, 3:08 PMcrooked-daybreak-55253
11/29/2023, 3:10 PMadorable-helmet-59877
11/29/2023, 3:13 PMmodule "msk_apache_kafka_cluster" {
source = "cloudposse/msk-apache-kafka-cluster/aws"
version = "2.3.0"
enabled = local.enabled
vpc_id = data.aws_vpc.this.id
subnet_ids = data.aws_subnets.this.ids
kafka_version = "3.2.0"
broker_instance_type = var.broker_instance_type
broker_volume_size = var.broker_volume_size
storage_autoscaling_max_capacity = var.storage_autoscaling_max_capacity
client_sasl_scram_enabled = true
encryption_at_rest_kms_key_arn = data.aws_kms_key.this.arn
client_sasl_scram_secret_association_arns = [
aws_secretsmanager_secret.this.arn
]
properties = {
"auto.create.topics.enable" = true
}
allowed_security_group_ids = [module.security_group.id]
context = module.this.context
}
This is a module which creates the MSK cluster.
The subnet_ids
is gain from a data block.
I have private 3 subnets for my region - which received from data. As I hear from you, infracost does not execute TF, thus can't access data.
This is the output for this module:
module.msk_apache_kafka_cluster.aws_msk_cluster.default[0]
├─ Instance (kafka.t3.small) 19,710 hours $1,036.75
└─ Storage (autoscaling) 27 GB $3.21
OVERALL TOTAL $1,040.36