File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,12 +67,30 @@ if ! aws ec2 describe-key-pairs --key-names "deis" >/dev/null ; then
6767fi
6868
6969make discovery-url
70+
71+ # customize cloudformation.json to use m3.medium instances
72+ cat > $DEIS_ROOT /contrib/ec2/cloudformation.json << EOF
73+ [
74+ {
75+ "ParameterKey": "KeyPair",
76+ "ParameterValue": "deis"
77+ },
78+ {
79+ "ParameterKey": "InstanceType",
80+ "ParameterValue": "m3.medium"
81+ }
82+ ]
83+ EOF
84+
7085# add random characters after STACK_TAG to avoid collisions
7186STACK_TAG=${STACK_TAG:- test} -$( openssl rand -hex 4)
7287STACK_NAME=deis-$STACK_TAG
7388echo " Creating CloudFormation stack $STACK_NAME "
7489$DEIS_ROOT /contrib/ec2/provision-ec2-cluster.sh $STACK_NAME
7590
91+ # discard changes to cloudformation.json
92+ git checkout -- $DEIS_ROOT /contrib/ec2/cloudformation.json
93+
7694# use the first cluster node for now
7795INSTANCE_IDS=$( aws ec2 describe-instances \
7896 --filters Name=tag:aws:cloudformation:stack-name,Values=$STACK_NAME Name=instance-state-name,Values=running \
You can’t perform that action at this time.
0 commit comments