update user on konviva

This commit is contained in:
2025-07-18 13:05:03 -03:00
parent 61e7ac0f4b
commit 64946471b9
6 changed files with 94 additions and 6 deletions

View File

@@ -104,3 +104,26 @@ Resources:
status: [CANCELED]
old_image:
status: [PENDING]
EventUpdateUserFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.update_user.lambda_handler
LoggingConfig:
LogGroup: !Ref EventLog
Policies:
- DynamoDBReadPolicy:
TableName: !Ref UserTable
Events:
DynamoDBEvent:
Type: EventBridgeRule
Properties:
Pattern:
resources: [!Ref UserTable]
detail-type: [MODIFY]
detail:
new_image:
sk: ["0"]
metadata__konviva_user_id:
- exists: true
changes: [name, email, cpf]