diff --git a/serverless.yml b/serverless.yml index c365721..05ce320 100644 --- a/serverless.yml +++ b/serverless.yml @@ -107,6 +107,10 @@ resources: - 'sqs:ReceiveMessage' - 'sqs:DeleteMessage' - 'sqs:GetQueueUrl' + - !If + - IsIntegrationTesting + - 'sqs:PurgeQueue' + - !Ref AWS::NoValue Resource: - 'Fn::Join': - ':'