This commit is contained in:
2026-01-21 21:31:32 -03:00
parent 26c3df876f
commit 37a9b20188
38 changed files with 1009 additions and 532 deletions

View File

@@ -21,12 +21,12 @@ Parameters:
Globals:
Function:
CodeUri: app/
Runtime: python3.13
Runtime: python3.14
Tracing: Active
Architectures:
- x86_64
Layers:
- !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:layer:layercake:104
- !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:layer:layercake:106
Environment:
Variables:
TZ: America/Sao_Paulo
@@ -189,7 +189,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: events.billing.close_window.lambda_handler
Timeout: 12
Timeout: 30
LoggingConfig:
LogGroup: !Ref EventLog
Policies:
@@ -209,6 +209,8 @@ Resources:
id:
- prefix: BILLING
sk:
# Post-migration: uncomment the following line
# - suffix: SCHEDULED#AUTO_CLOSE
- suffix: SCHEDULE#AUTO_CLOSE
EventBillingSendEmailOnClosingFunction:
@@ -247,10 +249,39 @@ Resources:
old_image:
status: [PENDING]
EventStartFulfillmentFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.start_fulfillment.lambda_handler
Timeout: 30
LoggingConfig:
LogGroup: !Ref EventLog
Policies:
- DynamoDBCrudPolicy:
TableName: !Ref OrderTable
- DynamoDBCrudPolicy:
TableName: !Ref EnrollmentTable
- DynamoDBReadPolicy:
TableName: !Ref CourseTable
Events:
DynamoDBEvent:
Type: EventBridgeRule
Properties:
Pattern:
resources: [!Ref OrderTable]
detail-type: [INSERT]
detail:
new_image:
sk: [FULFILLMENT]
status: [IN_PROGRESS]
org_id:
- exists: true
EventRunSelfDestructionFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.run_self_destruction.lambda_handler
Timeout: 30
LoggingConfig:
LogGroup: !Ref EventLog
Policies:
@@ -265,7 +296,7 @@ Resources:
detail-type: [EXPIRE]
detail:
keys:
sk: ['SCHEDULE#SELF_DESTRUCTION']
sk: ['SCHEDULED#SELF_DESTRUCTION']
# DEPRECATED
EventAppendOrgIdFunction:
@@ -322,6 +353,7 @@ Resources:
user_id:
- exists: false
# DEPRECATED
EventRemoveSlotsIfCanceledFunction:
Type: AWS::Serverless::Function
Properties: