Spaces:
Sleeping
Sleeping
set -e | |
CLUSTER_NAME="rag-ecs-cluster" | |
FASTAPI_SERVICE_NAME="dev-acres-fastapi" | |
TASK_FASTAPI_DEFINTION_FAMILY="dev-acres-fastapi" | |
LATEST_FASTAPI_TASK_DEFINITION_ARN=$(aws ecs describe-task-definition \ | |
--task-definition $TASK_FASTAPI_DEFINTION_FAMILY \ | |
--query 'taskDefinition.taskDefinitionArn' \ | |
--output text) | |
echo "TASK DEF ARN:" | |
echo $LATEST_FASTAPI_TASK_DEFINITION_ARN | |
aws ecs update-service \ | |
--cluster $CLUSTER_NAME \ | |
--service $FASTAPI_SERVICE_NAME \ | |
--task-definition $LATEST_FASTAPI_TASK_DEFINITION_ARN \ | |
--force-new-deployment |