现在部署时出错,请查看源代码。
functions:
test_request:
handler: src/functions/test/test_request.run
reservedConcurrency: ${self:custom.concurrency.request}
package:
include:
- src/functions/test/test_request.py
- src/test/**.py
deadLetter:
targetArn:
GetResourceArn: RequesttestDlq
environment:
QUEUENAME: ${self:service}-${opt:stage}-analysis-test
resources:
Resources:
RequesttestDlq:
Type: AWS::SQS::Queue
Properties:
QueueName: ${self:service}-${self:provider.stage}-request-test-dlq
VisibilityTimeout: 900
Analysistest:
Type: AWS::SQS::Queue
Properties:
QueueName: ${self:service}-${self:provider.stage}-analysis-test
VisibilityTimeout: 900
RedrivePolicy:
deadLetterTargetArn:
"Fn::GetAtt":
- AnalysistestDeadletter
- Arn
maxReceiveCount: 10
AnalysistestDeadletter:
Type: AWS::SQS::Queue
Properties:
QueueName: ${self:service}-${self:provider.stage}-test-dlq
VisibilityTimeout: 900
AnalysistestDlq:
Type: AWS::SQS::Queue
Properties:
QueueName: ${self:service}-${self:provider.stage}-analysis-test-dlq
VisibilityTimeout: 900
发生错误:
ErrorQueue-MaimovieModules-dev-error已存在于堆栈中
我收到此错误消息。
我是第一次尝试DLQ。