title: CloudFormation - not able to create SQS Policy
body: <p>I am trying to create a SQSQueue and attach permission to it via SQS::QueuePolicy.
  Following is my cloud Formation template -</p>
  
  <h1>Template</h1>
  
  <pre><code>{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Resources": {
  
      "MySQS": {
          "Type": "AWS::SQS::Queue",
          "Properties": {
              "QueueName": "QueueName1"
          }
      },
      "MySQSPolicy": {
          "Type": "AWS::SQS::QueuePolicy",
          "Properties": {
              "Queues": [
                  {
                      "Fn::GetAtt" : ["MySQS", "Arn"] 
                  }
              ],
              "PolicyDocument": {
                  "Statement": [
                      {
                          "Effect": "Allow",
                          "Principal": {
                              "AWS": ["1234567689111"]
                          },
                          "Action": [
                              "SQS:SendMessage"
                          ]
                      }
                  ]
              }
          }
      }
  }
  }
  </code></pre>
  
  <h1>Error</h1>
  
  <p>I tried creating stack via AWS Console, <code>SQS Queue</code> creation is successful ,but receiving below error for <code>SQS policy</code> creation -</p>
  
  <blockquote>
    <p>The specified queue does not exist for this wsdl version. (Service: AmazonSQS; Status Code: 400; Error Code: AWS.SimpleQueueService.NonExistentQueue; Request ID: e2611b4d-6166-5bf3-9205-4d0590e34f84)</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/q962h.png" rel="nofollow noreferrer">CloudFormation Console Error</a></p>
  
  <p>I have referred the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html" rel="nofollow noreferrer">documentation</a> but can't figure out what the problem is?
  Any ideas what is wrong here?</p>