mirror of
https://github.com/Sea-Haven-Industries/afterhours-shift-manager.git
synced 2026-10-04 11:22:04 +00:00
Add arm64, log retention, and compliance fixes
- Set arm64 architecture globally for all Lambda functions - Add explicit CloudWatch log groups with 60-day retention - Add missing WeeklyPostFunctionArn to stack outputs - Add Dependabot assignees for both ecosystems - Add samconfig.toml.example for onboarding
This commit is contained in:
parent
f26fe978b5
commit
3de9243f6b
3 changed files with 36 additions and 0 deletions
4
.github/dependabot.yml
vendored
4
.github/dependabot.yml
vendored
|
|
@ -4,6 +4,8 @@ updates:
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
|
assignees:
|
||||||
|
- "amoussa1229"
|
||||||
groups:
|
groups:
|
||||||
minor-and-patch:
|
minor-and-patch:
|
||||||
update-types:
|
update-types:
|
||||||
|
|
@ -13,6 +15,8 @@ updates:
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
|
assignees:
|
||||||
|
- "amoussa1229"
|
||||||
groups:
|
groups:
|
||||||
minor-and-patch:
|
minor-and-patch:
|
||||||
update-types:
|
update-types:
|
||||||
|
|
|
||||||
9
samconfig.toml.example
Normal file
9
samconfig.toml.example
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
version = 0.1
|
||||||
|
|
||||||
|
[default.deploy.parameters]
|
||||||
|
stack_name = "afterhours-shift-manager"
|
||||||
|
resolve_s3 = true
|
||||||
|
s3_prefix = "afterhours-shift-manager"
|
||||||
|
region = "us-east-1"
|
||||||
|
capabilities = "CAPABILITY_IAM"
|
||||||
|
confirm_changeset = true
|
||||||
|
|
@ -16,6 +16,8 @@ Globals:
|
||||||
Runtime: python3.12
|
Runtime: python3.12
|
||||||
Timeout: 30
|
Timeout: 30
|
||||||
MemorySize: 1024
|
MemorySize: 1024
|
||||||
|
Architectures:
|
||||||
|
- arm64
|
||||||
|
|
||||||
Resources:
|
Resources:
|
||||||
# --- DynamoDB ---
|
# --- DynamoDB ---
|
||||||
|
|
@ -181,6 +183,25 @@ Resources:
|
||||||
Description: "Sync roster from 3CX at 6am EDT"
|
Description: "Sync roster from 3CX at 6am EDT"
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
# --- CloudWatch Log Groups (explicit 60-day retention) ---
|
||||||
|
SlackBotLogGroup:
|
||||||
|
Type: AWS::Logs::LogGroup
|
||||||
|
Properties:
|
||||||
|
LogGroupName: !Sub "/aws/lambda/${SlackBotFunction}"
|
||||||
|
RetentionInDays: 60
|
||||||
|
|
||||||
|
WeeklyPostLogGroup:
|
||||||
|
Type: AWS::Logs::LogGroup
|
||||||
|
Properties:
|
||||||
|
LogGroupName: !Sub "/aws/lambda/${WeeklyPostFunction}"
|
||||||
|
RetentionInDays: 60
|
||||||
|
|
||||||
|
RosterSyncLogGroup:
|
||||||
|
Type: AWS::Logs::LogGroup
|
||||||
|
Properties:
|
||||||
|
LogGroupName: !Sub "/aws/lambda/${RosterSyncFunction}"
|
||||||
|
RetentionInDays: 60
|
||||||
|
|
||||||
Outputs:
|
Outputs:
|
||||||
SlackBotApiUrl:
|
SlackBotApiUrl:
|
||||||
Description: URL for Slack app Request URL configuration
|
Description: URL for Slack app Request URL configuration
|
||||||
|
|
@ -189,5 +210,7 @@ Outputs:
|
||||||
Value: !Ref ShiftTable
|
Value: !Ref ShiftTable
|
||||||
SlackBotFunctionArn:
|
SlackBotFunctionArn:
|
||||||
Value: !GetAtt SlackBotFunction.Arn
|
Value: !GetAtt SlackBotFunction.Arn
|
||||||
|
WeeklyPostFunctionArn:
|
||||||
|
Value: !GetAtt WeeklyPostFunction.Arn
|
||||||
RosterSyncFunctionArn:
|
RosterSyncFunctionArn:
|
||||||
Value: !GetAtt RosterSyncFunction.Arn
|
Value: !GetAtt RosterSyncFunction.Arn
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue