-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathqueues.yml
More file actions
66 lines (63 loc) · 1.97 KB
/
queues.yml
File metadata and controls
66 lines (63 loc) · 1.97 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
AWSTemplateFormatVersion: 2010-09-09
Description: |
FromQueue
1. Task created
2. Taskrun submitted
3. Determine task consensus
4. Generate visualizations (if all tasks done) and update newsfeed.
Parameters:
KMSKey:
Description: The key to encrypt queues with.
Type: AWS::SSM::Parameter::Value<String>
Default: public-editor-queues-key:1
Resources:
InputQueue:
Type: AWS::SQS::Queue
Properties:
ReceiveMessageWaitTimeSeconds: 20
# Docs recommend 6*(lamda_timeout)
# https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
VisibilityTimeout: 1800
KmsMasterKeyId: !Ref KMSKey
RedrivePolicy:
deadLetterTargetArn: !GetAtt InputDeadLetterQueue.Arn
maxReceiveCount: 2
OutputQueue:
Type: AWS::SQS::Queue
Properties:
ReceiveMessageWaitTimeSeconds: 20
# Docs recommend 6*(lamda_timeout)
VisibilityTimeout: 1800
KmsMasterKeyId: !Ref KMSKey
RedrivePolicy:
deadLetterTargetArn: !GetAtt OutputDeadLetterQueue.Arn
maxReceiveCount: 2
InputDeadLetterQueue:
Type: AWS::SQS::Queue
Properties:
KmsMasterKeyId: !Ref KMSKey
OutputDeadLetterQueue:
Type: AWS::SQS::Queue
Properties:
KmsMasterKeyId: !Ref KMSKey
Outputs:
InputQueueARN:
Description: "Input Queue ARN for Public Editor Algorithms"
Value: !GetAtt InputQueue.Arn
Export:
Name: !Sub '${AWS::StackName}-InputQueueARN'
InputQueueName:
Description: "Input Queue Name for Public Editor Algorithms"
Value: !GetAtt InputQueue.QueueName
Export:
Name: !Sub '${AWS::StackName}-InputQueueName'
OutputQueueARN:
Description: "Output Queue ARN for Public Editor Algorithms"
Value: !GetAtt OutputQueue.Arn
Export:
Name: !Sub '${AWS::StackName}-OutputQueueARN'
OutputQueueName:
Description: "Output Queue Name for Public Editor Algorithms"
Value: !GetAtt OutputQueue.QueueName
Export:
Name: !Sub '${AWS::StackName}-OutputQueueName'