I am getting error
The specified queue does not exist for this wsdl version. Service: AmazonSQS; Status Code: 400; Error Code: AWS.SimpleQueueService.NonExistentQueue;
Not sure about the issue.
AWSTemplateFormatVersion: "2010-09-09"
Resources:
EmailQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: test-queue
EmailQueueServiceRole:
Type: AWS::SQS::QueuePolicy
Properties:
Queues:
- Ref: "EmailQueue"
PolicyDocument:
Statement:
-
Effect: "Allow"
Action:
- "SQS:SendMessage"
- "SQS:GetQueueUrl"
- "SQS:ReceiveMessage"
Resource:
Fn::GetAtt:
- "EmailQueue"
- "Arn"
Principal: "*"