add datetable cnfcnpj

This commit is contained in:
2025-11-24 11:45:53 -03:00
parent 5b1ba9e9c7
commit 78ad183e61
29 changed files with 828 additions and 255 deletions

View File

@@ -33,13 +33,15 @@ Resources:
Properties:
RetentionInDays: 90
EventCsvChunksFunction:
EventCsvIntoChunksFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.batch.csv_chunks.lambda_handler
Handler: events.batch.csv_into_chunks.lambda_handler
LoggingConfig:
LogGroup: !Ref EventLog
Policies:
- DynamoDBCrudPolicy:
TableName: !Ref UserTable
- S3CrudPolicy:
BucketName: !Ref BucketName
Events:
@@ -50,8 +52,35 @@ Resources:
resources: [!Ref UserTable]
detail:
new_image:
id:
- prefix: BATCH_JOB#ORG#
sk:
- prefix: BATCH_JOB#ORG
- prefix: FILE#
status: [PENDING]
EventChunksIntoUsersFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.batch.chunks_into_user.lambda_handler
LoggingConfig:
LogGroup: !Ref EventLog
Policies:
- DynamoDBCrudPolicy:
TableName: !Ref UserTable
- S3CrudPolicy:
BucketName: !Ref BucketName
Events:
DynamoDBEvent:
Type: EventBridgeRule
Properties:
Pattern:
resources: [!Ref UserTable]
detail:
new_image:
id:
- prefix: BATCH_JOB#ORG#
sk:
- prefix: CHUNK#START#
EventEmailReceivingFunction:
Type: AWS::Serverless::Function