File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22#
3- # Usage: ./provision-ec2-cluster.sh
4- #
3+ # Usage: ./provision-ec2-cluster.sh [name]
4+ # The [name] is the CloudFormation stack name, and defaults to 'deis'
5+
6+ if [ -z " $1 " ]
7+ then
8+ NAME=deis
9+ else
10+ NAME=$1
11+ fi
512
613set -e
714
@@ -34,7 +41,7 @@ $CONTRIB_DIR/util/check-user-data.sh
3441# create an EC2 cloudformation stack based on CoreOS's default template
3542aws cloudformation create-stack \
3643 --template-body " $( ./gen-json.py) " \
37- --stack-name deis \
44+ --stack-name $NAME \
3845 --parameters " $( < cloudformation.json) "
3946
4047echo_green " Your Deis cluster has successfully deployed to AWS CloudFormation."
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22#
3- # Usage: ./provision-ec2-cluster.sh [id]
4- # The [id] defaults to 'deis'
5-
3+ # Usage: ./update-ec2-cluster.sh [name]
4+ # The [name] is the CloudFormation stack name, and defaults to 'deis'
65
76if [ -z " $1 " ]
87 then
9- ELB_NAME =deis
8+ NAME =deis
109 else
11- ELB_NAME =$1
10+ NAME =$1
1211fi
1312
1413set -e
@@ -30,7 +29,7 @@ $CONTRIB_DIR/util/check-user-data.sh
3029# update the deis EC2 cloudformation
3130aws cloudformation update-stack \
3231 --template-body " $( ./gen-json.py) " \
33- --stack-name $ELB_NAME \
32+ --stack-name $NAME \
3433 --parameters " $( < cloudformation.json) "
3534
3635echo_green " Your Deis cluster CloudFormation has been successfully updated."
Original file line number Diff line number Diff line change @@ -151,9 +151,6 @@ Run the cloudformation provision script to spawn a new CoreOS cluster:
151151
152152.. code-block :: console
153153
154- # Usage: ./provision-ec2-cluster.sh [id]
155- # Where id is internal reference id to the ELB, defaults to 'deis'
156-
157154 $ cd contrib/ec2
158155 $ ./provision-ec2-cluster.sh
159156 {
@@ -162,6 +159,11 @@ Run the cloudformation provision script to spawn a new CoreOS cluster:
162159 Your Deis cluster has successfully deployed.
163160 Please wait for all instances to come up as "running" before continuing.
164161
162+ .. note ::
163+
164+ The default name of the CloudFormation stack will be ``deis ``. You can specify a different name
165+ with ``./provision-ec2-cluster.sh <name> ``.
166+
165167Check the AWS EC2 web control panel and wait until "Status Checks" for all instances have passed.
166168This will take several minutes.
167169
You can’t perform that action at this time.
0 commit comments