Skip to content

Latest commit

 

History

History
122 lines (93 loc) · 2.15 KB

aws_msk_cluster.md

File metadata and controls

122 lines (93 loc) · 2.15 KB

aws_msk_cluster

back

Index

Terraform

terraform {
  required_providers {
    aws = ">= 3.35.0"
  }
}

top

Example Usage

module "aws_msk_cluster" {
  source = "./modules/aws/d/aws_msk_cluster"

  # cluster_name - (required) is a type of string
  cluster_name = null
  # tags - (optional) is a type of map of string
  tags = {}
}

top

Variables

variable "cluster_name" {
  description = "(required)"
  type        = string
}

variable "tags" {
  description = "(optional)"
  type        = map(string)
  default     = null
}

top

Datasource

data "aws_msk_cluster" "this" {
  # cluster_name - (required) is a type of string
  cluster_name = var.cluster_name
  # tags - (optional) is a type of map of string
  tags = var.tags
}

top

Outputs

output "arn" {
  description = "returns a string"
  value       = data.aws_msk_cluster.this.arn
}

output "bootstrap_brokers" {
  description = "returns a string"
  value       = data.aws_msk_cluster.this.bootstrap_brokers
}

output "bootstrap_brokers_sasl_scram" {
  description = "returns a string"
  value       = data.aws_msk_cluster.this.bootstrap_brokers_sasl_scram
}

output "bootstrap_brokers_tls" {
  description = "returns a string"
  value       = data.aws_msk_cluster.this.bootstrap_brokers_tls
}

output "id" {
  description = "returns a string"
  value       = data.aws_msk_cluster.this.id
}

output "kafka_version" {
  description = "returns a string"
  value       = data.aws_msk_cluster.this.kafka_version
}

output "number_of_broker_nodes" {
  description = "returns a number"
  value       = data.aws_msk_cluster.this.number_of_broker_nodes
}

output "tags" {
  description = "returns a map of string"
  value       = data.aws_msk_cluster.this.tags
}

output "zookeeper_connect_string" {
  description = "returns a string"
  value       = data.aws_msk_cluster.this.zookeeper_connect_string
}

output "this" {
  value = aws_msk_cluster.this
}

top