Skip to content

Commit 51e6d6c

Browse files
committed
Adding more required variables to error out early.
1 parent 84eaac2 commit 51e6d6c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bin/aws-code-deploy.sh

+10
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,21 @@ if [ -z "$AWS_CODE_DEPLOY_DEPLOYMENT_GROUP_NAME" ]; then
142142
exit 1
143143
fi
144144

145+
if [ -z "$AWS_CODE_DEPLOY_APP_SOURCE" ]; then
146+
error "Please set the \"\$AWS_CODE_DEPLOY_APP_SOURCE\" to a pre-packaged bundle or a directory to be deployed"
147+
exit 1
148+
fi
149+
145150
if [ -z "$AWS_CODE_DEPLOY_S3_BUCKET" ]; then
146151
error "Please set the \"\$AWS_CODE_DEPLOY_S3_BUCKET\" variable"
147152
exit 1
148153
fi
149154

155+
if [ -z "$AWS_CODE_DEPLOY_S3_FILENAME" ]; then
156+
error "Please set the \"\$AWS_CODE_DEPLOY_S3_FILENAME\" variable"
157+
exit 1
158+
fi
159+
150160

151161

152162
# ----- Install AWS Cli -----

0 commit comments

Comments
 (0)