Skip to content

Commit b5644c3

Browse files
committed
feat(tests): use m3.medium instances for ec2 integration tests
1 parent 3d5a92b commit b5644c3

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tests/bin/test-integration-ec2.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,30 @@ if ! aws ec2 describe-key-pairs --key-names "deis" >/dev/null ; then
6767
fi
6868

6969
make 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
7186
STACK_TAG=${STACK_TAG:-test}-$(openssl rand -hex 4)
7287
STACK_NAME=deis-$STACK_TAG
7388
echo "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
7795
INSTANCE_IDS=$(aws ec2 describe-instances \
7896
--filters Name=tag:aws:cloudformation:stack-name,Values=$STACK_NAME Name=instance-state-name,Values=running \

0 commit comments

Comments
 (0)