KeyPair: the name of the AWS keypair you want to use. If you haven’t already, you’ll want to upload your local ssh key into AWS and create a named keypair.
Wait until instances are up
ssh into a CoreOS instance
Go to the AWS console under EC2 instances and find the public ip of one of your newly launched CoreOS instances.
Choose any one of them (it doesn’t matter which), and ssh into it as the core user with the cert provided in the previous step:
1
$ ssh -i aws.cer -A core@ec2-54-83-80-161.compute-1.amazonaws.com
Spin up Sync Gateway containers
12
$ etcdctl set /couchbase.com/enable-code-refresh true
$ sudo docker run --net=host tleyden5iwx/couchbase-cluster-go update-wrapper sync-gw-cluster launch-sgw --num-nodes=2 --config-url=http://git.io/hFwa --in-memory-db
Verify etcd entries
12345
$ etcdctl ls --recursive /
...
/couchbase.com/sync-gw-node-state
/couchbase.com/sync-gw-node-state/10.169.70.114
/couchbase.com/sync-gw-node-state/10.231.220.110