add set as expired

This commit is contained in:
2025-08-22 18:04:21 -03:00
parent 45f444a222
commit 4acf85fd85
17 changed files with 87 additions and 53 deletions

View File

@@ -310,10 +310,10 @@ Resources:
# Post-migration: remove the following line
- schedules#expiration
EventScheduleRemindersFunction:
EventSetAsExpiredFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.schedule_reminders.lambda_handler
Handler: events.set_as_expired.lambda_handler
LoggingConfig:
LogGroup: !Ref EventLog
Policies:
@@ -325,11 +325,31 @@ Resources:
Properties:
Pattern:
resources: [!Ref EnrollmentTable]
detail-type: [INSERT]
detail-type: [EXPIRE]
detail:
new_image:
sk: ["0"]
status: [PENDING]
keys:
sk: [SCHEDULE#SET_AS_EXPIRED]
# EventScheduleRemindersFunction:
# Type: AWS::Serverless::Function
# Properties:
# Handler: events.schedule_reminders.lambda_handler
# LoggingConfig:
# LogGroup: !Ref EventLog
# Policies:
# - DynamoDBCrudPolicy:
# TableName: !Ref EnrollmentTable
# Events:
# DynamoDBEvent:
# Type: EventBridgeRule
# Properties:
# Pattern:
# resources: [!Ref EnrollmentTable]
# detail-type: [INSERT]
# detail:
# new_image:
# sk: ["0"]
# status: [PENDING]
EventIssueCertFunction:
Type: AWS::Serverless::Function