Skip to content

Commit 5f51cd6

Browse files
committed
Added option to ignore ApplicationStop errors
1 parent dc077a1 commit 5f51cd6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

deploy-s3.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
#!/bin/bash
22

33
appname="DemoApplication"
4-
dgname="Demo-ASG-Ubuntu"
4+
dgname="Demo-Tag-Ubuntu"
55
zipname="${appname}-${dgname}-$(date -u "+%Y%m%d-%H%M%S").zip"
66
bucket="default50-public"
77
bucket_key="CodeDeploy"
8-
configname="CodeDeployDefault.OneAtATime"
8+
configname="CodeDeployDefault.AllAtOnce"
9+
#configname="CodeDeployDefault.OneAtATime"
910
profile="code"
1011

12+
if [ "x${1}" = "x-i" ]; then
13+
IGNORE="--ignore-application-stop-failures"
14+
fi
15+
1116
aws deploy push --profile ${profile} --application-name ${appname} --s3-location s3://${bucket}/${bucket_key}/${zipname} --ignore-hidden-files --description ${appname}
12-
aws deploy create-deployment --profile ${profile} --application-name ${appname} --deployment-config-name ${configname} --deployment-group-name ${dgname} --s3-location bucket=${bucket},bundleType=zip,key=${bucket_key}/${zipname}
17+
aws deploy create-deployment --profile ${profile} --application-name ${appname} --deployment-config-name ${configname} --deployment-group-name ${dgname} --s3-location bucket=${bucket},bundleType=zip,key=${bucket_key}/${zipname} ${IGNORE}

0 commit comments

Comments
 (0)