-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
46 lines (43 loc) · 1.11 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
37
38
39
40
41
42
43
44
45
46
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
Heimdall-Burstable-SES
Globals:
Function:
Timeout: 3
Resources:
EmailWaitingQueue:
Type: AWS::SQS::Queue
SendEmailFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: ./
Handler: app.lambdaHandler
Runtime: nodejs18.x
Architectures:
- x86_64
Events:
EmailWaitingQueueEvent:
Type: SQS
Properties:
Queue: !GetAtt EmailWaitingQueue.Arn
BatchSize: 1
ScalingConfig:
MaximumConcurrency: 2
Policies:
- AmazonSESFullAccess
Metadata: # Manage esbuild properties
BuildMethod: esbuild
BuildProperties:
Minify: true
Target: 'es2020'
Sourcemap: true
EntryPoints:
- app.ts
Outputs:
SendEmailFunction:
Description: 'SendEmailFunction Lambda ARN'
Value: !GetAtt SendEmailFunction.Arn
SendEmailFunctionIamRole:
Description: 'Implicit IAM Role created for SendEmailFunction'
Value: !GetAtt SendEmailFunctionRole.Arn