msk-kafka-cluster

clowdhaus/msk-kafka-cluster/aws

Terraform Module HCL AWS

Terraform module to create AWS MSK (Managed Streaming for Kafka) resources πŸ‡ΊπŸ‡¦

Install
module "msk-kafka-cluster" {
source = "clowdhaus/msk-kafka-cluster/aws"
version = "2.13.0"
}
⭐ Source on GitHub πŸ“¦ Registry page
README

AWS MSK Kafka Cluster Terraform module Terraform module which creates AWS MSK (Managed Streaming for Kafka) resources. ![SWUbanner](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md) Usage See examples directory for working examples to reference: ```hcl module "msk_kafka_cluster" { source = "terraform-aws-modules/msk-kafka-cluster/aws" name = local.name kafka_version = "3.5.1" number_of_broker_nodes = 3 enhanced_monitoring = "PER_TOPIC_PER_PARTITION" broker_node_client_subnets = ["subnet-12345678", "subnet-024681012", "subnet-87654321"] broker_node_storage_info = { ebs_storage_info = { volume_size = 100 } } broker_node_instance_type = "kafka.t3.small" broker_node_security_groups = ["sg-12345678"] encryption_in_transit_client_broker = "TLS" encryption_in_transit_in_cl

Inputs (50)
NameTypeDescriptionDefault
schemasmap(any)A map schemas to be created within the schema registry{}
s3_logs_prefixstringPrefix to append to the folder namenull
scaling_max_capacitynumberMax storage capacity for Kafka broker autoscaling250
connect_worker_config_descriptionstringA summary description of the worker configurationnull
broker_node_connectivity_infoanyInformation about the cluster access configuration{}
timeoutsmap(string)Create, update, and delete timeout configurations for the cluster{}
create_scram_secret_associationboolDetermines whether to create SASL/SCRAM secret associationfalse
cloudwatch_log_group_retention_in_daysnumberSpecifies the number of days you want to retain log events in the log group0
broker_node_storage_infoanyA block that contains information about storage volumes attached to MSK broker n{}
firehose_logs_enabledboolIndicates whether you want to enable or disable streaming broker logs to Kinesisfalse
namestringName of the MSK cluster"msk"
s3_logs_bucketstringName of the S3 bucket to deliver logs tonull
configuration_namestringName of the configurationnull
create_cluster_policyboolDetermines whether to create an MSK cluster policyfalse
enable_storage_autoscalingboolDetermines whether autoscaling is enabled for storagetrue
encryption_in_transit_in_clusterboolWhether data communication among broker nodes is encrypted. Default value: `truenull
broker_node_az_distributionstringThe distribution of broker nodes across availability zones ([documentation](httpnull
s3_logs_enabledboolIndicates whether you want to enable or disable streaming broker logs to S3false
scram_secret_association_secret_arn_listlist(string)List of AWS Secrets Manager secret ARNs to associate with SCRAM[]
cloudwatch_log_group_kms_key_idstringThe ARN of the KMS Key to use when encrypting log datanull
… and 10 more inputs
Outputs (32)
bootstrap_brokers_sasl_iam β€” One or more DNS names (or IP addresses) and SASL IAM port pairs. This attribute will have a value if
bootstrap_brokers_public β€” Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap conne
scram_secret_association_id β€” Amazon Resource Name (ARN) of the MSK cluster
appautoscaling_policy_policy_type β€” The scaling policy's type
bootstrap_brokers_vpc_connectivity β€” Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap conne
zookeeper_connect_string_tls β€” A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper
configuration_latest_revision β€” Latest revision of the configuration
log_group_arn β€” The Amazon Resource Name (ARN) specifying the log group
bootstrap_brokers_tls β€” One or more DNS names (or IP addresses) and TLS port pairs. This attribute will have a value if `enc
bootstrap_brokers_public_sasl_scram β€” One or more DNS names (or IP addresses) and SASL SCRAM port pairs
cluster_uuid β€” UUID of the MSK cluster, for use in IAM policies
appautoscaling_policy_arn β€” The ARN assigned by AWS to the scaling policy
bootstrap_brokers_sasl_scram β€” One or more DNS names (or IP addresses) and SASL SCRAM port pairs. This attribute will have a value
bootstrap_brokers_vpc_connectivity_tls β€” One or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity
configuration_arn β€” Amazon Resource Name (ARN) of the configuration
schema_registries β€” A map of output attributes for the schema registries created
bootstrap_brokers_plaintext β€” Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap conne
bootstrap_brokers_vpc_connectivity_sasl_iam β€” One or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity
schemas β€” A map of output attributes for the schemas created
appautoscaling_policy_name β€” The scaling policy's name
arn β€” Amazon Resource Name (ARN) of the MSK cluster
bootstrap_brokers β€” Comma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap conne
cluster_name β€” Name of the MSK cluster
current_version β€” Current version of the MSK Cluster used for updates, e.g. `K13V1IB3VIYZZH`
zookeeper_connect_string β€” A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper
vpc_connections β€” A map of output attributes for the VPC connections created
bootstrap_brokers_public_sasl_iam β€” One or more DNS names (or IP addresses) and SASL IAM port pairs
bootstrap_brokers_vpc_connectivity_sasl_scram β€” One or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity
bootstrap_brokers_public_tls β€” One or more DNS names (or IP addresses) and TLS port pairs
connect_custom_plugins β€” A map of output attributes for the connect custom plugins created
… and 2 more outputs
Resources (13)
aws_appautoscaling_policyaws_appautoscaling_targetaws_cloudwatch_log_groupaws_glue_registryaws_glue_schemaaws_msk_clusteraws_msk_cluster_policyaws_msk_configurationaws_msk_scram_secret_associationaws_msk_vpc_connectionaws_mskconnect_custom_pluginaws_mskconnect_worker_configurationrandom_id
Details
FrameworkTerraform Module
LanguageHCL
Version2.13.0
Cloud AWS
β˜… Stars63
Forks74
Total downloads450.6k
Inputs50
Outputs32
Resources13
Examples4
Submodules1
LicenseApache-2.0
Namespaceclowdhaus
Updated