-
Notifications
You must be signed in to change notification settings - Fork 118
/
template.yaml
42 lines (36 loc) · 968 Bytes
/
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
sqs-expressjs
an expressjs app that receives messages from an sqs queue
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function:
Timeout: 300
Resources:
SqsExpressFunction:
Type: AWS::Serverless::Function
Properties:
PackageType: Image
MemorySize: 256
Environment:
Variables:
RUST_LOG: info
Events:
SqsEvent:
Type: SQS
Properties:
Queue: !GetAtt SqsQueue.Arn
Metadata:
DockerTag: v1
DockerContext: ./app
Dockerfile: Dockerfile
SqsQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: sqs-expressjs
VisibilityTimeout: 900
Outputs:
SqsQueueUrl:
Description: "SQS URL the express Lambda Function will receive messages from"
Value: !Ref SqsQueue