Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 842 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 842 Bytes

terraform-aws-msk

A Terraform module to provision an Amazon MSK cluster (Amazon Managed Streaming for Apache Kafka).

Right now the module is very basic, but will be extended in the near future.

Usage

Basic example

terraform {
  required_version = ">= 0.12.0"
}

provider "aws" {
  version = ">= 2.28.1"
  region  = eu-west-2
}

module "msk" {
  source                     = "git::https://github.com/Shogan/terraform-aws-msk.git?ref=master"
  namespace                  = "eg"
  stage                      = "dev"
  name                       = "msk"
  security_groups            = ["sg-xxxxxxxxxxx"]
  subnet_ids                 = ["subnet-aaaaaaaa", "subnet-bbbbbbbb", "subnet-ccccccccc"]
  broker_node_instance_type  = "kafka.m5.large"
  broker_node_instance_count = 3
}