Skip to content

Commit

Permalink
Reverting "--file-exists-behavior" until more thorough testing and
Browse files Browse the repository at this point in the history
awscli/integration can be completed.
  • Loading branch information
virgofx committed Jan 29, 2019
1 parent 30deb02 commit 4f671aa
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ Environment variables are used to control the deployment actions. A brief summar
| `AWS_CODE_DEPLOY_S3_SSE` | No | If specified and `true` will ensure the CodeDeploy archive is stored in S3 with Server Side Encryption (SSE) |
| `AWS_CODE_DEPLOY_REVISION_DESCRIPTION` | No | A description that is stored within AWS Code Deploy that stores information about the specific revision |
| `AWS_CODE_DEPLOY_DEPLOYMENT_DESCRIPTION` | No | A description that is stored within AWS Code Deploy that stores information about the specific deployment |
| `AWS_CODE_DEPLOY_DEPLOYMENT_FILE_EXISTS_BEHAVIOR` | No | String `DISALLOW\|OVERWRITE\|RETAIN` that defines how AWS CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment. Default = `DISALLOW`
| `AWS_CODE_DEPLOY_OUTPUT_STATUS_LIVE` | No | Boolean `true\|false` that specifies whether the deployment status should use a single line showing live status. In CI environments where the `\r` is not supported, set this to `false` for better logging. Default = `true` |


## Examples

### CircleCI
Expand Down
5 changes: 0 additions & 5 deletions bin/aws-code-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -480,18 +480,13 @@ runCommand "${REGISTER_APP_CMD}" \
# see documentation http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment.html
# ----------------------
DEPLOYMENT_DESCRIPTION="$AWS_CODE_DEPLOY_DEPLOYMENT_DESCRIPTION"
DEPLOYMENT_FILE_EXISTS_BEHAVIOR="$AWS_CODE_DEPLOY_DEPLOYMENT_FILE_EXISTS_BEHAVIOR"
h1 "Step 10: Creating Deployment"
DEPLOYMENT_CMD="aws deploy create-deployment --output json --application-name $APPLICATION_NAME --deployment-config-name $DEPLOYMENT_CONFIG_NAME --deployment-group-name $DEPLOYMENT_GROUP --s3-location $S3_LOCATION"

if [ -n "$DEPLOYMENT_DESCRIPTION" ]; then
DEPLOYMENT_CMD="$DEPLOYMENT_CMD --description \"$DEPLOYMENT_DESCRIPTION\""
fi

if [ -z "$DEPLOYMENT_FILE_EXISTS_BEHAVIOR" ]; then
DEPLOYMENT_FILE_EXISTS_BEHAVIOR="DISALLOW"
fi
DEPLOYMENT_CMD="$DEPLOYMENT_CMD --file-exists-behavior $DEPLOYMENT_FILE_EXISTS_BEHAVIOR"

DEPLOYMENT_OUTPUT=""
runCommand "$DEPLOYMENT_CMD" \
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-code-deploy",
"version": "1.0.9",
"version": "1.0.10",
"description": "Bash script to easily deploy applications with AWS Code Deploy.",
"author": "TechPivot",
"main": "bin/aws-code-deploy.sh",
Expand Down

0 comments on commit 4f671aa

Please sign in to comment.