diff --git a/infrastructure/lambdas/freshness-monitor/deploy.sh b/infrastructure/lambdas/freshness-monitor/deploy.sh index 0fd433a..6ad9a2e 100755 --- a/infrastructure/lambdas/freshness-monitor/deploy.sh +++ b/infrastructure/lambdas/freshness-monitor/deploy.sh @@ -215,10 +215,26 @@ if $BOOTSTRAP; then --region "${REGION}" \ --query 'RuleArn' --output text + # JSON Input (`{"mode":"historical"}`) doesn't fit the put-targets + # shorthand form (Id=,Arn=,Input= chokes on the embedded quotes + + # comma). Write a temp JSON file + pass via file:// to dodge the + # shell-quoting trap. Caught live 2026-05-28 when --bootstrap re-run + # tripped argparse on the shorthand. + HIST_TARGET_JSON=$(mktemp) + cat > "${HIST_TARGET_JSON}" <