acres / bin /cfn /ecs-deploy-update-gradio
Patrick Walukagga
Enable cors and new study choices endpoint
78b79c7
raw
history blame contribute delete
541 Bytes
#! /usr/bin/env bash
set -e
CLUSTER_NAME="rag-ecs-cluster"
SERVICE_NAME="dev-acres-gradio"
TASK_GRADIO_DEFINTION_FAMILY="dev-acres-gradio"
LATEST_GRADIO_TASK_DEFINITION_ARN=$(aws ecs describe-task-definition \
--task-definition $TASK_GRADIO_DEFINTION_FAMILY \
--query 'taskDefinition.taskDefinitionArn' \
--output text)
echo "TASK DEF ARN:"
echo $LATEST_GRADIO_TASK_DEFINITION_ARN
aws ecs update-service \
--cluster $CLUSTER_NAME \
--service $SERVICE_NAME \
--task-definition $LATEST_GRADIO_TASK_DEFINITION_ARN \
--force-new-deployment