add postgres
This commit is contained in:
@@ -76,6 +76,8 @@ Resources:
|
||||
Policies:
|
||||
- DynamoDBCrudPolicy:
|
||||
TableName: !Ref EnrollmentTable
|
||||
- DynamoDBCrudPolicy:
|
||||
TableName: !Ref CourseTable
|
||||
Events:
|
||||
DynamoDBEvent:
|
||||
Type: EventBridgeRule
|
||||
@@ -281,7 +283,7 @@ Resources:
|
||||
detail:
|
||||
keys:
|
||||
sk:
|
||||
- SCHEDULE#REMINDER_CERT_EXPIRATION_BEFORE_30_DAYS
|
||||
- SCHEDULE#REMINDER_ACCESS_PERIOD_BEFORE_30_DAYS
|
||||
# Post-migration: remove the following line
|
||||
- schedules#access_period_ends
|
||||
|
||||
@@ -310,6 +312,8 @@ Resources:
|
||||
# Post-migration: remove the following line
|
||||
- schedules#expiration
|
||||
|
||||
# If there is no certificate and the access period has ended,
|
||||
# the enrollment will be marked as expired
|
||||
EventSetAsExpiredFunction:
|
||||
Type: AWS::Serverless::Function
|
||||
Properties:
|
||||
@@ -328,28 +332,55 @@ Resources:
|
||||
detail-type: [EXPIRE]
|
||||
detail:
|
||||
keys:
|
||||
sk: [SCHEDULE#SET_AS_EXPIRED]
|
||||
sk:
|
||||
- SCHEDULE#SET_AS_EXPIRED
|
||||
# Post-migration: remove the following line
|
||||
- schedules#access_period_ends
|
||||
|
||||
# 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]
|
||||
# After the certificate expires, the enrollment will be marked as archived
|
||||
EventSetAsArchivedFunction:
|
||||
Type: AWS::Serverless::Function
|
||||
Properties:
|
||||
Handler: events.set_as_archived.lambda_handler
|
||||
LoggingConfig:
|
||||
LogGroup: !Ref EventLog
|
||||
Policies:
|
||||
- DynamoDBCrudPolicy:
|
||||
TableName: !Ref EnrollmentTable
|
||||
Events:
|
||||
DynamoDBEvent:
|
||||
Type: EventBridgeRule
|
||||
Properties:
|
||||
Pattern:
|
||||
resources: [!Ref EnrollmentTable]
|
||||
detail-type: [EXPIRE]
|
||||
detail:
|
||||
keys:
|
||||
sk:
|
||||
- SCHEDULE#SET_AS_ARCHIVED
|
||||
# Post-migration: remove the following line
|
||||
- schedules#archive_it
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user