Skip to content

Commit

Permalink
Fixed SQS Queue policy and SNS subscription dependency on Main Queue
Browse files Browse the repository at this point in the history
  • Loading branch information
jormaechea committed Sep 26, 2024
1 parent 002cc07 commit 674cf56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/sqs-helper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ module.exports = class SQSHelper {
}
]
}
}
},
DependsOn: [this.names.mainQueue]
}
}]
];
Expand All @@ -327,7 +328,8 @@ module.exports = class SQSHelper {
Endpoint: this.arns.mainQueue,
RawMessageDelivery: true,
TopicArn: generateSnsArns(this.sourceSnsTopicName).topic
}
},
DependsOn: [this.names.mainQueue]
}
}]
];
Expand Down
6 changes: 4 additions & 2 deletions tests/unit/hook-builder/sqs.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ describe('Hook Builder Helpers', () => {
}
]
}
}
},
DependsOn: ['TestQueue']
}
}];

Expand All @@ -208,7 +209,8 @@ describe('Hook Builder Helpers', () => {
Endpoint: 'arn:aws:sqs:${aws:region}:${aws:accountId}:${self:custom.serviceName}TestQueue',
RawMessageDelivery: true,
TopicArn: 'arn:aws:sns:${aws:region}:${aws:accountId}:TestTopic'
}
},
DependsOn: ['TestQueue']
}
}];

Expand Down

0 comments on commit 674cf56

Please sign in to comment.