-
Notifications
You must be signed in to change notification settings - Fork 72
/
queues.yml
52 lines (51 loc) · 1.54 KB
/
queues.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
46
47
48
49
50
51
52
Resources:
AutobuilderJobsQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: ${self:custom.JobsQueueName}
VisibilityTimeout: 180
RedrivePolicy:
deadLetterTargetArn:
Fn::GetAtt: [JobsDLQ, Arn]
maxReceiveCount: 1
AutobuilderJobUpdatesQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: ${self:custom.JobUpdatesQueueName}
VisibilityTimeout: 180
RedrivePolicy:
deadLetterTargetArn:
Fn::GetAtt: [JobUpdatesDLQ, Arn]
maxReceiveCount: 1
JobsDLQ:
Type: "AWS::SQS::Queue"
Properties:
QueueName: ${self:custom.JobsDLQueueName}
JobUpdatesDLQ:
Type: "AWS::SQS::Queue"
Properties:
QueueName: ${self:custom.JobUpdatesDLQueueName}
AllowECS2SQSPolicy:
Type: AWS::SQS::QueuePolicy
Properties:
Queues: [ !Ref AutobuilderJobUpdatesQueue, !Ref AutobuilderJobsQueue ]
PolicyDocument:
Version: "2012-10-17"
Id: SQSPolicy
Statement:
- Sid: Allow-SQS-SendMessage_UpdateQueue
Effect: Allow
Principal:
AWS: "*"
Action:
- 'sqs:SendMessage'
Resource:
- !GetAtt [AutobuilderJobUpdatesQueue, Arn]
- Sid: Allow-SQS-SendMessage_JobQueue
Effect: Allow
Principal:
AWS: "*"
Action:
- 'sqs:SendMessage'
Resource:
- !GetAtt [AutobuilderJobsQueue, Arn]