add search filter
This commit is contained in:
@@ -26,6 +26,7 @@ Globals:
|
||||
POWERTOOLS_LOGGER_SAMPLE_RATE: 0.1
|
||||
POWERTOOLS_LOGGER_LOG_EVENT: true
|
||||
USER_TABLE: !Ref UserTable
|
||||
CLOUDFLARE_API_TOKEN: '{{resolve:ssm:/saladeaula/cloudflare_api_token}}'
|
||||
|
||||
Resources:
|
||||
EventLog:
|
||||
@@ -265,3 +266,23 @@ Resources:
|
||||
new_image:
|
||||
sk: ['0']
|
||||
changes: [name, email, cpf]
|
||||
|
||||
EventSetCustomDomainFunction:
|
||||
Type: AWS::Serverless::Function
|
||||
Properties:
|
||||
Handler: events.set_custom_domain.lambda_handler
|
||||
LoggingConfig:
|
||||
LogGroup: !Ref EventLog
|
||||
Policies:
|
||||
- DynamoDBCrudPolicy:
|
||||
TableName: !Ref UserTable
|
||||
Events:
|
||||
DynamoDBEvent:
|
||||
Type: EventBridgeRule
|
||||
Properties:
|
||||
Pattern:
|
||||
resources: [!Ref UserTable]
|
||||
detail-type: [INSERT]
|
||||
detail:
|
||||
new_image:
|
||||
sk: ['CUSTOM_DOMAIN']
|
||||
|
||||
Reference in New Issue
Block a user