This commit is contained in:
2025-06-06 18:32:09 -03:00
parent 3e44761e69
commit 53613d0a48
34 changed files with 939 additions and 752 deletions

View File

@@ -8,6 +8,9 @@ Parameters:
EnrollmentTable:
Type: String
Default: betaeducacao-prod-enrollments
NewEnrollmentTable:
Type: String
Default: saladeaula_enrollments
OrderTable:
Type: String
Default: betaeducacao-prod-orders
@@ -38,10 +41,32 @@ Resources:
Properties:
RetentionInDays: 90
EventDelVacanciesFunction:
EventEnrollFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.stopgap.del_vacancies.lambda_handler
Handler: events.stopgap.enroll.lambda_handler
LoggingConfig:
LogGroup: !Ref EventLog
Policies:
- DynamoDBCrudPolicy:
TableName: !Ref NewEnrollmentTable
- DynamoDBReadPolicy:
TableName: !Ref EnrollmentTable
Events:
DynamoDBEvent:
Type: EventBridgeRule
Properties:
Pattern:
resources: [!Ref EnrollmentTable]
detail-type: [INSERT]
detail:
new_image:
sk: ["0"]
EventDeleteVacanciesFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.stopgap.delete_vacancies.lambda_handler
LoggingConfig:
LogGroup: !Ref EventLog
Policies: