This commit is contained in:
2025-10-03 19:31:41 -03:00
parent 48ed8d8345
commit 5ae2128dee
29 changed files with 996 additions and 168 deletions

View File

@@ -5,6 +5,9 @@ Parameters:
CourseTable:
Type: String
Default: saladeaula_courses
EnrollmentTable:
Type: String
Default: betaeducacao-prod-enrollments
Globals:
Function:
@@ -23,6 +26,7 @@ Globals:
POWERTOOLS_LOGGER_LOG_EVENT: true
DYNAMODB_PARTITION_KEY: id
COURSE_TABLE: !Ref CourseTable
ENROLLMENT_TABLE: !Ref EnrollmentTable
Resources:
HttpLog:
@@ -58,8 +62,10 @@ Resources:
LoggingConfig:
LogGroup: !Ref HttpLog
Policies:
- DynamoDBReadPolicy:
- DynamoDBCrudPolicy:
TableName: !Ref CourseTable
- DynamoDBCrudPolicy:
TableName: !Ref EnrollmentTable
Events:
Preflight:
Type: HttpApi