Skip to content

Commit

Permalink
logging: JSON and custom log group
Browse files Browse the repository at this point in the history
  • Loading branch information
jojo786 committed Nov 24, 2023
1 parent f345ba0 commit 87e39ed
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Globals:
LoggingConfig:
LogGroup: !Sub /aws/lambda/${AWS::StackName}
LogFormat: JSON

Parameters:
StageEnv:
Type: String
Expand Down Expand Up @@ -39,13 +39,13 @@ Resources:
PostRecencyThreshold: "7000"
stage: !FindInMap [StageMappings, !Ref StageEnv, stage]
ReservedConcurrentExecutions: 1
Events:
CheckForNewPostsScheduledEvent:
Type: ScheduleV2
Properties:
Description: run every hour
ScheduleExpression: rate(1 hours)
ScheduleExpressionTimezone: GMT+2
# Events:
# CheckForNewPostsScheduledEvent:
# Type: ScheduleV2
# Properties:
# Description: run every hour
# ScheduleExpression: rate(1 hours)
# ScheduleExpressionTimezone: GMT+2
Policies:
- DynamoDBCrudPolicy:
TableName: !Ref AwsNewsRecentPostsTable
Expand Down

0 comments on commit 87e39ed

Please sign in to comment.