MSK
Terraform module to create AWS MSK (Managed Streaming for Kafka) resources
Inputs
40 / 59
broker_node_az_distributionoptionalstringThe distribution of broker nodes across availability zones ([documentation](https://docs.aws.amazon.com/msk/1.0/apireference/clusters.html#clusters-model-brokerazdistribution)). Currently the only valid value is `DEFAULT`
nullbroker_node_client_subnetsoptionallist(string)A list of subnets to connect to in client VPC ([documentation](https://docs.aws.amazon.com/msk/1.0/apireference/clusters.html#clusters-prop-brokernodegroupinfo-clientsubnets))
[]broker_node_connectivity_infooptionalobject({ vpc_connectivity = optional(object({ client_authentication = optional(o…Information about the cluster access configuration
nullbroker_node_instance_typeoptionalstringSpecify the instance type to use for the kafka brokers. e.g. kafka.m5.large. ([Pricing info](https://aws.amazon.com/msk/pricing/))
nullbroker_node_security_groupsoptionallist(string)A list of the security groups to associate with the elastic network interfaces to control who can communicate with the cluster
[]broker_node_storage_infooptionalobject({ ebs_storage_info = optional(object({ provisioned_throughput = optional(…A block that contains information about storage volumes attached to MSK broker nodes
nullclient_authenticationoptionalobject({ sasl = optional(object({ iam = optional(bool) scram = optional(bool) })…Configuration block for specifying a client authentication
nullcloudwatch_log_group_classoptionalstringSpecifies the log class of the log group. Possible values are: STANDARD or INFREQUENT_ACCESS.
nullcloudwatch_log_group_kms_key_idoptionalstringThe ARN of the KMS Key to use when encrypting log data
nullcloudwatch_log_group_nameoptionalstringName of the Cloudwatch Log Group to deliver logs to
nullcloudwatch_log_group_retention_in_daysoptionalnumberSpecifies the number of days you want to retain log events in the log group
0cloudwatch_logs_enabledoptionalboolIndicates whether you want to enable or disable streaming broker logs to Cloudwatch Logs
falsecluster_override_policy_documentsoptionallist(string)Override policy documents for cluster policy
nullcluster_policy_statementsoptionalmap(object({ sid = optional(string) actions = optional(list(string)) not_actions…Map of policy statements for cluster policy
nullcluster_source_policy_documentsoptionallist(string)Source policy documents for cluster policy
nullconfiguration_arnoptionalstringARN of an externally created configuration to use
nullconfiguration_descriptionoptionalstringDescription of the configuration
nullconfiguration_nameoptionalstringName of the configuration
nullconfiguration_revisionoptionalnumberRevision of the externally created configuration to use
nullconfiguration_server_propertiesoptionalmap(string)Contents of the server.properties file. Supported properties are documented in the [MSK Developer Guide](https://docs.aws.amazon.com/msk/latest/developerguide/msk-configuration-properties.html)
{}connect_custom_pluginsoptionalmap(object({ name = string description = optional(string) content_type = string …Map of custom plugin configuration details (map of maps)
{}connect_worker_config_descriptionoptionalstringA summary description of the worker configuration
nullconnect_worker_config_nameoptionalstringThe name of the worker configuration
nullconnect_worker_config_properties_file_contentoptionalstringContents of connect-distributed.properties file. The value can be either base64 encoded or in raw format
nullcreateoptionalboolDetermines whether cluster resources will be created
truecreate_cloudwatch_log_groupoptionalboolDetermines whether to create a CloudWatch log group
truecreate_cluster_policyoptionalboolDetermines whether to create an MSK cluster policy
falsecreate_configurationoptionalboolDetermines whether to create a configuration
truecreate_connect_worker_configurationoptionalboolDetermines whether to create connect worker configuration
falsecreate_schema_registryoptionalboolDetermines whether to create a Glue schema registry for managing Avro schemas for the cluster
truecreate_scram_secret_associationoptionalboolDetermines whether to create SASL/SCRAM secret association
falseenable_storage_autoscalingoptionalboolDetermines whether autoscaling is enabled for storage
trueencryption_at_rest_kms_key_arnoptionalstringYou may specify a KMS key short ID or ARN (it will always output an ARN) to use for encrypting your data at rest. If no key is specified, an AWS managed KMS ('aws/msk' managed service) key will be used for encrypting the data at rest
nullencryption_in_transit_client_brokeroptionalstringEncryption setting for data in transit between clients and brokers. Valid values: `TLS`, `TLS_PLAINTEXT`, and `PLAINTEXT`. Default value is `TLS`
nullencryption_in_transit_in_clusteroptionalboolWhether data communication among broker nodes is encrypted. Default value: `true`
nullenhanced_monitoringoptionalstringSpecify the desired enhanced MSK CloudWatch monitoring level. See [Monitoring Amazon MSK with Amazon CloudWatch](https://docs.aws.amazon.com/msk/latest/developerguide/monitoring.html)
nullfirehose_delivery_streamoptionalstringName of the Kinesis Data Firehose delivery stream to deliver logs to
nullfirehose_logs_enabledoptionalboolIndicates whether you want to enable or disable streaming broker logs to Kinesis Data Firehose
falsejmx_exporter_enabledoptionalboolIndicates whether you want to enable or disable the JMX Exporter
falsekafka_versionoptionalstringSpecify the desired Kafka software version
nullAll 59 are optional — the module deploys with none of them set. Showing 40, so the site stays a static download — the remaining 19 are in the source.
Outputs
33
appautoscaling_policy_arnThe ARN assigned by AWS to the scaling policy
appautoscaling_policy_nameThe scaling policy's name
appautoscaling_policy_policy_typeThe scaling policy's type
arnAmazon Resource Name (ARN) of the MSK cluster
bootstrap_brokersComma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster
bootstrap_brokers_plaintextComma 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`
bootstrap_brokers_publicComma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster
bootstrap_brokers_public_sasl_iamOne or more DNS names (or IP addresses) and SASL IAM port pairs
bootstrap_brokers_public_sasl_scramOne or more DNS names (or IP addresses) and SASL SCRAM port pairs
bootstrap_brokers_public_tlsOne or more DNS names (or IP addresses) and TLS port pairs
bootstrap_brokers_sasl_iamOne 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`
bootstrap_brokers_sasl_scramOne 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`
bootstrap_brokers_tlsOne 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`
bootstrap_brokers_vpc_connectivityComma separated list of one or more hostname:port pairs of Kafka brokers suitable to bootstrap connectivity to the Kafka cluster
bootstrap_brokers_vpc_connectivity_sasl_iamOne or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity
bootstrap_brokers_vpc_connectivity_sasl_scramOne or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity
bootstrap_brokers_vpc_connectivity_tlsOne or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity
cluster_nameName of the MSK cluster
cluster_uuidUUID of the MSK cluster, for use in IAM policies
configuration_arnAmazon Resource Name (ARN) of the configuration
configuration_latest_revisionLatest revision of the configuration
connect_custom_pluginsA map of output attributes for the connect custom plugins created
connect_worker_configuration_arnThe Amazon Resource Name (ARN) of the worker configuration
connect_worker_configuration_latest_revisionAn ID of the latest successfully created revision of the worker configuration
current_versionCurrent version of the MSK Cluster used for updates, e.g. `K13V1IB3VIYZZH`
log_group_arnThe Amazon Resource Name (ARN) specifying the log group
schema_registriesA map of output attributes for the schema registries created
schemasA map of output attributes for the schemas created
scram_secret_association_idAmazon Resource Name (ARN) of the MSK cluster
topicsA map of output attributes for the MSK topics created
vpc_connectionsA map of output attributes for the VPC connections created
zookeeper_connect_stringA 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
zookeeper_connect_string_tlsA 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
What the agent wires into the next module. An edge on the architecture diagram is one of these consumed by something else.