Skip to content

Instantly share code, notes, and snippets.

@jdaarevalo
Created April 21, 2023 18:50
Show Gist options
  • Save jdaarevalo/9ec6d393895bb70c26295436ba13db43 to your computer and use it in GitHub Desktop.
Save jdaarevalo/9ec6d393895bb70c26295436ba13db43 to your computer and use it in GitHub Desktop.
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