mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-07-24 04:20:39 +00:00
revert(deploy): roll back EventBridge HTTPS schedule attempts
Reverts585d996+c70b9d0. Both CFN deploys failed at changeset validation; prod stack was never mutated. Approach A (AWS::Scheduler::Schedule with arn:aws:scheduler:::http-invoke target) is unimplementable in pure CloudFormation — the Target schema has no property for HTTP endpoint/method/headers, regardless of name. Replacement landing in a follow-up commit. Restored: plans/reports/brainstorm-260517-1411-eventbridge-schedule-fix.md (useful design context even though Approach A invalidated).
This commit is contained in:
@@ -43,23 +43,17 @@ jobs:
|
||||
- name: SAM deploy
|
||||
env:
|
||||
ALERT_EMAIL: ${{ secrets.ALERT_EMAIL }}
|
||||
STACK_ENV: prod
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# EventBridge Scheduler can't resolve {{resolve:ssm-secure}} in
|
||||
# HttpInvokeArgs.HeaderParameters; fetch and pass as a NoEcho param.
|
||||
CRON_SECRET=$(aws ssm get-parameter \
|
||||
--name "/miti99bot/${STACK_ENV}/cron-shared-secret" \
|
||||
--with-decryption --query Parameter.Value --output text)
|
||||
echo "::add-mask::$CRON_SECRET"
|
||||
OVERRIDES="CronSharedSecret=$CRON_SECRET"
|
||||
if [ -n "$ALERT_EMAIL" ]; then
|
||||
OVERRIDES="$OVERRIDES AlertEmail=$ALERT_EMAIL"
|
||||
sam deploy --template-file template.yaml \
|
||||
--no-confirm-changeset \
|
||||
--no-fail-on-empty-changeset \
|
||||
--parameter-overrides "AlertEmail=$ALERT_EMAIL"
|
||||
else
|
||||
sam deploy --template-file template.yaml \
|
||||
--no-confirm-changeset \
|
||||
--no-fail-on-empty-changeset
|
||||
fi
|
||||
sam deploy --template-file template.yaml \
|
||||
--no-confirm-changeset \
|
||||
--no-fail-on-empty-changeset \
|
||||
--parameter-overrides "$OVERRIDES"
|
||||
|
||||
- name: Smoke test (Function URL responds)
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user