Skip to content

Instantly share code, notes, and snippets.

@amundra2016
amundra2016 / brokers.yml
Last active November 30, 2018 02:39
Brokers Cloudformation Template
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Broker cloudformation template'
Parameters:
KeyName:
Description: 'For SSH access'
Type: 'AWS::EC2::KeyPair::KeyName'
MinimumInstances:
Description: Minimum number of instances for autoscaling group
Type: Number
AllowedValues:
@amundra2016
amundra2016 / zookeeper.yml
Last active February 11, 2019 01:11
Zookeeper Cloudformation Template
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Zookeeper cloudformation template'
Parameters:
MinimumInstances:
Description: Minimum number of instances for autoscaling group
Type: Number
AllowedValues:
- 3
- 5
InstanceType:
dataDir=/tmp/zookeeper
clientPort=2181
# disable the per-ip limit on the number of connections since this is a non-production config
maxClientCnxns=10
server.1=172.31.11.221:2888:3888
server.2=172.31.7.161:2888:3888
server.3=172.31.2.85:2888:3888
initLimit=5
syncLimit=2