Created
April 21, 2023 18:50
-
-
Save jdaarevalo/9ec6d393895bb70c26295436ba13db43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ScatterFunction: | |
Type: AWS::Serverless::Function | |
Properties: | |
CodeUri: src/ | |
Handler: scatter_lambda.lambda_handler | |
Runtime: python3.9 | |
Architectures: | |
- x86_64 | |
Policies: | |
- AmazonDynamoDBFullAccess | |
- AmazonAthenaFullAccess | |
- AmazonS3FullAccess | |
- AmazonSQSFullAccess | |
Timeout: 180 | |
MemorySize: 512 | |
Environment: | |
Variables: | |
SG_PROCESSES_TABLE_NAME: !Ref SGProcessesTableName | |
SG_AGGREGATE_TABLE_NAME: !Ref SGAggregateTableName | |
ATHENA_RAW_DATABASE_NAME: !Ref RawDataBaseName | |
QUEUE_URL: !GetAtt ProcessorSqsQueue.QueueUrl | |
Layers: | |
- !Sub 'arn:aws:lambda:${RegionName}:017000801446:layer:AWSLambdaPowertoolsPythonV2:16' | |
- !Sub 'arn:aws:lambda:${RegionName}:336392948345:layer:AWSSDKPandas-Python39:5' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment