From 3019a06a4cbf265f808ce40f849dbe8c8fe3f3e2 Mon Sep 17 00:00:00 2001 From: Claison Amorim Date: Thu, 3 Oct 2019 14:57:01 +1000 Subject: [PATCH] add CLIENT_NAME variable --- src/deploy.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/deploy.sh b/src/deploy.sh index a4a768a..a268085 100755 --- a/src/deploy.sh +++ b/src/deploy.sh @@ -28,7 +28,7 @@ echo "---> Creating deployment with CodeDeploy" # Update the ECS service to use the updated Task version aws ecs deploy \ - --service $APP_NAME \ + --service $CLIENT_NAME-$APP_NAME \ --task-definition ./task-definition.json \ --cluster $CLUSTER_NAME \ --codedeploy-appspec ./app-spec.json \ @@ -41,6 +41,11 @@ sleep 5 # Wait for deployment to be created so we can fetch DEPLOYMENT_ID next DEPLOYMENT_ID=$(aws deploy list-deployments --application-name=$CLUSTER_NAME-$CLIENT_NAME-$APP_NAME --deployment-group=$CLUSTER_NAME-$CLIENT_NAME-$APP_NAME --max-items=1 --query="deployments[0]" --output=text | head -n 1) +echo $DEPLOYMENT_ID +echo $CLIENT_NAME +echo $CLUSTER_NAME +echo $APP_NAME + echo "---> For More Deployment info: https://$AWS_DEFAULT_REGION.console.aws.amazon.com/codesuite/codedeploy/deployments/$DEPLOYMENT_ID" echo "---> Waiting for Deployment ..."