@@ -25,19 +25,29 @@ $ ssh-keygen -q -t rsa -f ~/.ssh/deis -N '' -C deis
2525$ aws ec2 import-key-pair --key-name deis --public-key-material file://~/.ssh/deis.pub
2626```
2727
28- ## Customize cloudformation.json
29- Edit [ cloudformation.json] [ cf-params ] , ensuring to add a new discovery URL.
30- You can get a new one by sending a new request to http://discovery.etcd.io/new .
28+ ## Choose number of instances
29+ By default, the script will provision 3 servers. You can override this by setting ` DEIS_NUM_INSTANCES ` :
3130``` console
31+ $ export DEIS_NUM_INSTANCES=5
32+ ```
33+
34+ ## Customize user-data
35+ Edit [ user-data] ( ../coreos/user-data ) and add a new discovery URL.
36+ You can get a new one by sending a request to http://discovery.etcd.io/new .
37+
38+ ## Customize cloudformation.json
39+ By default, this script spins up m3.large instances. You can override this
40+ by adding a new entry to [ cloudformation.json] ( cloudformation.json ) like so:
41+
42+ ```
3243 {
33- "ParameterKey": "DiscoveryURL ",
34- "ParameterValue": "https://discovery.etcd.io/40826e8da55f4d9026935ab67b243c6a "
44+ "ParameterKey": "InstanceType ",
45+ "ParameterValue": "m3.xlarge "
3546 }
3647```
37- NOTE: If you're interested in running your own discovery endpoint or want to know more
38- about the discovery URL, see http://discovery.etcd.io for more information. You can also
39- read more on how you can customize this cluster by looking at the
40- [ CoreOS EC2 template] [ template ] and applying it to [ cloudformation.json] [ cf-params ] .
48+
49+ The only entry in cloudformation.json required to launch your cluster is ` KeyPair ` ,
50+ which is already filled out. The defaults will be applied for the other settings.
4151
4252## Run the provision script
4353Run the [ cloudformation provision script] [ pro-script ] to spawn a new CoreOS cluster:
@@ -77,5 +87,4 @@ email: info@opdemand.com
7787
7888[ aws-cli ] : https://github.com/aws/aws-cli
7989[ template ] : https://s3.amazonaws.com/coreos.com/dist/aws/coreos-alpha.template
80- [ cf-params ] : cloudformation.json
8190[ pro-script ] : provision-ec2-cluster.sh
0 commit comments