add check mx record
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user