add check mx record

This commit is contained in:
2025-12-03 10:53:23 -03:00
parent 4e8f0321a2
commit ffa9565ab8
4 changed files with 89 additions and 1 deletions

View File

@@ -221,3 +221,27 @@ Resources:
- prefix: EMAIL_VERIFICATION#
welcome:
- exists: false
EventCheckMxRecordFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.check_mx_record.lambda_handler
LoggingConfig:
LogGroup: !Ref EventLog
Timeout: 12
Policies:
- DynamoDBCrudPolicy:
TableName: !Ref UserTable
Events:
DynamoDBEvent:
Type: EventBridgeRule
Properties:
Pattern:
resources: [!Ref UserTable]
detail-type: [INSERT]
detail:
new_image:
sk:
- prefix: emails#
mx_record_exists:
- exists: false