-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtemplate.yml
45 lines (44 loc) · 886 Bytes
/
template.yml
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: ''
Parameters:
RoleArn:
Type: String
S3Bucket:
Type: String
S3Prefix:
Type: String
S3Region:
Type: String
SqsURL:
Type: String
SecretArn:
Type: String
Resources:
SqsReceiver:
Type: AWS::Serverless::Function
Properties:
CodeUri: build
Handler: main
Runtime: go1.x
Timeout: 300
MemorySize: 1024
Role:
Ref: RoleArn
Environment:
Variables:
S3_BUCKET:
Ref: S3Bucket
S3_PREFIX:
Ref: S3Prefix
S3_REGION:
Ref: S3Region
SQS_URL:
Ref: SqsURL
SECRET_ARN:
Ref: SecretArn
Events:
EveryMinutes:
Type: Schedule
Properties:
Schedule: 'rate(1 minute)'