title: AWS IAM user policy to restrict access to specific SQS queue
body: <p>I'm trying to setup a user policy for a AWS IAM user to access a specific AWS SQS queue.</p>
  
  <p>When I try with below policy, I get the error AccessDenied.   </p>
  
  <pre><code>{
    "Statement": [
      {
        "Action": ["sqs:*"],
        "Effect": "Allow",
        "Resource": ["arn:aws:sqs:us-east-1:my_aws_account_id:queue_name"]
      }
    ]
  }
  </code></pre>
  
  <p>However, when I trying using the same policy, only replacing the queue_name part of arn with  *, it works:</p>
  
  <pre><code>{
    "Statement": [
      {
        "Action": ["sqs:*"],
        "Effect": "Allow",
        "Resource": ["arn:aws:sqs:us-east-1:my_aws_account_id:*"]
      }
    ]
  }
  </code></pre>
  
  <p>What could be the problem when trying to restrict access to specific queue?</p>