add test_mode

This commit is contained in:
2026-01-20 12:34:01 -03:00
parent 49e0c3333b
commit 1aa15aaddc
5 changed files with 72 additions and 2 deletions

View File

@@ -96,6 +96,8 @@ Resources:
detail:
new_image:
sk: ['0']
payment_method:
- anything-but: [MANUAL]
EventPaymentsChargeCreditCardFunction:
Type: AWS::Serverless::Function
@@ -245,6 +247,26 @@ Resources:
old_image:
status: [PENDING]
EventRunSelfDestructionFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.run_self_destruction.lambda_handler
LoggingConfig:
LogGroup: !Ref EventLog
Policies:
- DynamoDBCrudPolicy:
TableName: !Ref OrderTable
Events:
Event:
Type: EventBridgeRule
Properties:
Pattern:
resources: [!Ref OrderTable]
detail-type: [EXPIRE]
detail:
keys:
sk: ['SCHEDULE#SELF_DESTRUCTION']
# DEPRECATED
EventAppendOrgIdFunction:
Type: AWS::Serverless::Function