mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-10-07 16:18:54 +00:00
Document CORS, cron idempotency, and SSM config in template
Add comments explaining CORS dev server strategy, dual EST/EDT cron idempotency, and manual SSM parameter creation for Google Client ID.
This commit is contained in:
parent
763da24134
commit
09593b1d91
1 changed files with 9 additions and 0 deletions
|
|
@ -202,6 +202,8 @@ Resources:
|
||||||
Type: AWS::Serverless::HttpApi
|
Type: AWS::Serverless::HttpApi
|
||||||
Properties:
|
Properties:
|
||||||
StageName: $default
|
StageName: $default
|
||||||
|
# CORS only allows the production domain. For local development, use the
|
||||||
|
# Flask dev server (app.py) which proxies API requests and doesn't enforce CORS.
|
||||||
CorsConfiguration:
|
CorsConfiguration:
|
||||||
AllowOrigins:
|
AllowOrigins:
|
||||||
- !If
|
- !If
|
||||||
|
|
@ -283,6 +285,8 @@ Resources:
|
||||||
Environment:
|
Environment:
|
||||||
Variables:
|
Variables:
|
||||||
AGGREGATE_FUNCTION_ARN: !GetAtt AggregateOrdersFunction.Arn
|
AGGREGATE_FUNCTION_ARN: !GetAtt AggregateOrdersFunction.Arn
|
||||||
|
# Both EST and EDT schedules fire every week year-round. The handler is
|
||||||
|
# idempotent, so the "wrong timezone" firing is a harmless no-op.
|
||||||
Events:
|
Events:
|
||||||
CloseEST:
|
CloseEST:
|
||||||
Type: Schedule
|
Type: Schedule
|
||||||
|
|
@ -468,6 +472,11 @@ Resources:
|
||||||
Value: CHANGE_ME
|
Value: CHANGE_ME
|
||||||
Description: Slack channel ID for meal order notifications
|
Description: Slack channel ID for meal order notifications
|
||||||
|
|
||||||
|
# GoogleClientIdParam (/meal-order-manager/google-client-id) is managed
|
||||||
|
# manually via AWS CLI since it varies per environment. Create it with:
|
||||||
|
# aws ssm put-parameter --name /meal-order-manager/google-client-id \
|
||||||
|
# --type String --value "<YOUR_GOOGLE_CLIENT_ID>"
|
||||||
|
|
||||||
Outputs:
|
Outputs:
|
||||||
ApiUrl:
|
ApiUrl:
|
||||||
Description: API Gateway endpoint URL
|
Description: API Gateway endpoint URL
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue