enrollment to PF

This commit is contained in:
2025-07-21 18:41:20 -03:00
parent 58a174f432
commit 52e86b9f0f
8 changed files with 488 additions and 25 deletions

View File

@@ -42,10 +42,10 @@ Resources:
Properties:
RetentionInDays: 90
EventEnrollFunction:
EventPatchEnrollFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.stopgap.enroll.lambda_handler
Handler: events.stopgap.patch_enroll.lambda_handler
LoggingConfig:
LogGroup: !Ref EventLog
Policies:
@@ -86,6 +86,35 @@ Resources:
new_image:
sk: ["0"]
EventEnrollFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.enroll.lambda_handler
LoggingConfig:
LogGroup: !Ref EventLog
Policies:
- DynamoDBCrudPolicy:
TableName: !Ref OrderTable
- DynamoDBCrudPolicy:
TableName: !Ref EnrollmentTable
- DynamoDBReadPolicy:
TableName: !Ref CourseTable
Events:
DynamoDBEvent:
Type: EventBridgeRule
Properties:
Pattern:
resources: [betaeducacao-prod-orders]
detail-type: [INSERT]
detail:
new_image:
# Post-migration: uncomment the following lines
# sk: [slots]
# mode: [STANDALONE]
sk: [generated_items]
scope: [SINGLE_USER]
status: [PENDING]
EventAllocateSlotsFunction:
Type: AWS::Serverless::Function
Properties: