Browse the Repo

file-type-icondata-stores
file-type-iconecr-repos
file-type-iconelk-multi-cluster
file-type-iconelk-single-cluster
file-type-iconkafka
file-type-iconrds
file-type-iconredis
file-type-iconzookeeper
file-type-iconpacker
file-type-iconuser-data
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf
file-type-iconlambda
file-type-iconmgmt
file-type-iconnetworking
file-type-iconsecurity
file-type-iconservice-templates
file-type-iconservices
file-type-icontls-scripts
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconREADME.md

Browse the Repo

file-type-icondata-stores
file-type-iconecr-repos
file-type-iconelk-multi-cluster
file-type-iconelk-single-cluster
file-type-iconkafka
file-type-iconrds
file-type-iconredis
file-type-iconzookeeper
file-type-iconpacker
file-type-iconuser-data
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf
file-type-iconlambda
file-type-iconmgmt
file-type-iconnetworking
file-type-iconsecurity
file-type-iconservice-templates
file-type-iconservices
file-type-icontls-scripts
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconREADME.md
Sample Infrastructure Modules

Sample Infrastructure Modules

Sample infrastructure-modules repo (multi-account setup) for fictional company Acme.

Code Preview

Preview the Code

mobile file icon

README.md

down

ZooKeeper Cluster

This module uses package-zookeeper to deploy a ZooKeeper Cluster.

How do you use this module?

To deploy this module, you need to do the following:

  1. Build the AMI
  2. Apply the Terraform code

Build the AMI

  1. Install Packer.
  2. Set your AWS credentials as the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
  3. Set your GitHub access token as the environment variable GITHUB_OAUTH_TOKEN. Your GitHub account must have access to the Gruntwork GitHub repos mentioned in packer/zookeeper.json; if you don't have access to those, email support@gruntwork.io.
  4. Run packer build zookeeper.json.
  5. When the build completes, it'll output the id of the new AMI.

Apply the Terraform code

  • See the root README for instructions on using Terraform modules.
  • See variables.tf for all the variables you can set on this module.

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?