title: The policy failed legacy parsing
body: <p>I am trying to create IAM Role in AWS, but while I am creating I am facing error</p>
  
  <p>"We encountered the following errors while processing your request: 
   Problem in attaching permission to role. Role will be created without permission. 
   The policy failed legacy parsing  "</p>
  
  <pre><code>{"Version": "2012-10-17",  "Statement": [
  {
    "Effect": "Allow",
    "Action": [
      "logs:CreateLogGroup",
      "logs:CreateLogStream",
      "logs:PutLogEvents"
    ],
    "Resource": "arn:aws:logs:*:*:*"
  },
  {
    "Action": [
      "sqs:SendMessage",
      "sqs:GetQueueUrl"
    ],
    "Effect": "Allow",
    "Resource": "arn:aws:sqs:ap-northeast-1:SOME_ID_HERE:test-messages"
  }]}
  </code></pre>