#!/usr/bin/env bash
# Trigger a rolling deploy without changing the image (for experiments where we
# want to measure deploy timing at the ECS level, not a real code change).
#
# For a real image change, use build_and_push.sh <tag> then run this.
#
# Usage: ./force_deploy.sh

set -euo pipefail

CLUSTER="claude-ecs-task-protection-experiment"
SERVICE="claude-ecs-task-protection-experiment"

aws ecs update-service \
    --cluster "${CLUSTER}" \
    --service "${SERVICE}" \
    --force-new-deployment \
    --output json > /dev/null

echo "Forced new deployment"
