#!/usr/bin/env bash
if [[ -z "${ECS_CLUSTER}" ]]; then
echo "ECS_CLUSTER is missing"
exit 1
fi
if [[ -z "${ECS_SERVICE}" ]]; then
echo "ECS_SERVICE is missing"
exit 1
fi
# Fail on error
set -e
# Echo commands
set -x
# Update the medplum fargate service
aws ecs update-service \
--cluster "$ECS_CLUSTER" \
--service "$ECS_SERVICE" \
--force-new-deployment