mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-10-02 01:23:11 +00:00
Update SAM template for Google auth, Slack invocation, and deadline change
Add SLACK_NOTIFIER_ARN and GOOGLE_CLIENT_ID_PARAM env vars to submit order function with lambda:InvokeFunction policy. Move close-form schedule to Thursday 11:59pm EST/EDT.
This commit is contained in:
parent
81543c3b7f
commit
ef4726aa3f
1 changed files with 9 additions and 4 deletions
|
|
@ -230,6 +230,8 @@ Resources:
|
|||
Environment:
|
||||
Variables:
|
||||
FORM_API_KEY_SECRET: meal-order-manager/form-api-key
|
||||
SLACK_NOTIFIER_ARN: !GetAtt SlackNotifierFunction.Arn
|
||||
GOOGLE_CLIENT_ID_PARAM: /meal-order-manager/google-client-id
|
||||
Policies:
|
||||
- DynamoDBCrudPolicy:
|
||||
TableName: !Ref OrdersTable
|
||||
|
|
@ -237,6 +239,9 @@ Resources:
|
|||
- Effect: Allow
|
||||
Action: secretsmanager:GetSecretValue
|
||||
Resource: !Sub 'arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:meal-order-manager/*'
|
||||
- Effect: Allow
|
||||
Action: lambda:InvokeFunction
|
||||
Resource: !GetAtt SlackNotifierFunction.Arn
|
||||
Events:
|
||||
SubmitOrder:
|
||||
Type: HttpApi
|
||||
|
|
@ -279,14 +284,14 @@ Resources:
|
|||
CloseEST:
|
||||
Type: Schedule
|
||||
Properties:
|
||||
Schedule: cron(0 23 ? * THU *)
|
||||
Description: 'Close form Thursday 6pm EST (23:00 UTC)'
|
||||
Schedule: cron(59 4 ? * FRI *)
|
||||
Description: 'Close form Thursday 11:59pm EST (04:59 UTC Friday)'
|
||||
Enabled: true
|
||||
CloseEDT:
|
||||
Type: Schedule
|
||||
Properties:
|
||||
Schedule: cron(0 22 ? * THU *)
|
||||
Description: 'Close form Thursday 6pm EDT (22:00 UTC)'
|
||||
Schedule: cron(59 3 ? * FRI *)
|
||||
Description: 'Close form Thursday 11:59pm EDT (03:59 UTC Friday)'
|
||||
Enabled: true
|
||||
|
||||
AggregateOrdersFunction:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue