-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yaml
36 lines (35 loc) · 1.68 KB
/
template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# https://github.com/awslabs/serverless-application-model/blob/develop/versions/2016-10-31.md
# Indentation needs to be set with spaces, because YAML...
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: API endpoint to retrieve high-level match stats for Firestone users
Resources:
ProcessMatchStatsFunction2:
Type: AWS::Serverless::Function
Properties:
Handler: retrieve-overview-match-stats.default
Runtime: nodejs18.x
Timeout: 80
ReservedConcurrentExecutions: 10
MemorySize: 1000 # to increase the bandwidth when getting data from SQL. Updated 2024-02-01 08:00 CET
CodeUri: ./dist/retrieve-overview-match-stats
VpcConfig:
SecurityGroupIds:
- sg-eccd2691
SubnetIds:
- subnet-894624ec # Only the private subnet
# Layers:
# - !Sub "arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:14"
Policies:
- AWSLambdaVPCAccessExecutionRole
- AmazonSESFullAccess
- SecretsManagerReadWrite
- arn:aws:iam::aws:policy/CloudWatchLambdaInsightsExecutionRolePolicy
# For VPC
- AWSLambdaENIManagementAccess
- arn:aws:iam::478062583808:policy/CloudWatchPolicyForLambda # See https://stackoverflow.com/questions/51166504/disable-cloudwatch-to-monitor-logs-for-lambda-function
Tags:
LambdaName: api-retrieve-user-match-stats-2
AutoPublishAlias: live
FunctionUrlConfig:
AuthType: NONE