enrollment to PF
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user