Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconconfluent-oss-ami
file-type-iconkafka-ami
file-type-iconkafka-zookeeper-confluent-oss-ami
file-type-iconkafka-zookeeper-confluent-oss-colocated-cl...
file-type-iconkafka-zookeeper-confluent-oss-standalone-c...
file-type-iconkafka-zookeeper-standalone-clusters
file-type-iconzookeeper-ami
file-type-iconREADME.md
file-type-iconconfigure-zookeeper-server.sh
file-type-iconzookeeper.json
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
file-type-iconterraform-cloud-enterprise-private-module-...

Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconconfluent-oss-ami
file-type-iconkafka-ami
file-type-iconkafka-zookeeper-confluent-oss-ami
file-type-iconkafka-zookeeper-confluent-oss-colocated-cl...
file-type-iconkafka-zookeeper-confluent-oss-standalone-c...
file-type-iconkafka-zookeeper-standalone-clusters
file-type-iconzookeeper-ami
file-type-iconREADME.md
file-type-iconconfigure-zookeeper-server.sh
file-type-iconzookeeper.json
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
file-type-iconterraform-cloud-enterprise-private-module-...
Apache Kafka and Confluent Tools

Apache Kafka and Confluent Tools

Deploy a cluster of Kafka brokers. Optionally deploy Confluent tools such as Schema Registry, REST Proxy, and Kafka Connect.

Code Preview

Preview the Code

mobile file icon

README.md

down

ZooKeeper Example AMI

This folder contains an example Packer template that can be used to create an Amazon Machine Image (AMI) with ZooKeeper, Exhibitor, and all of their dependencies installed. A few notes about this Packer template:

  • It builds two AMIs, one on top of Amazon Linux and one on top of Ubuntu. Pick which ever distro you prefer.

  • The ZooKeeper code in this AMI comes from terraform-aws-zookeeper.

  • This AMI only includes ZooKeeper. It does not include Kafka, which is expected to be running in a separate cluster, with a separate AMI (see the kafka-ami example). For an example of Kafka and ZooKeeper co-located in the same cluster, see kafka-zookeeper-ami.

To deploy this AMI, see the kafka-zookeeper-standalone-clusters example.

Quick start

To build the AMI:

  1. Install Packer.
  2. Set up your AWS credentials as environment variables.
  3. Set the GITHUB_OAUTH_TOKEN environment variable to a valid GitHub auth token with "repo" access. You can generate one here: https://github.com/settings/tokens
  4. Run packer build kafka.json to create a new AMI in your AWS account. Note down the ID of this new AMI.

To deploy the new AMI, plug its ID into the kafka-zookeeper-standalone-clusters example.

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?