title: s3 Policy has invalid action - s3:ListAllMyBuckets
body: <p>I'm trying these <a href="https://stackoverflow.com/questions/6615168/s3-policy-limiting-access-to-only-one-bucket-listing-included">policy</a> through <a href="https://console.aws.amazon.com/s3" rel="noreferrer">console.aws.amazon.com</a> on my buckets:</p>
  <pre>
  
      {
        "Statement": [
          {
            "Effect": "Allow",
            "Action": [
              "s3:ListBucket",
              "s3:GetBucketLocation",
              "s3:ListBucketMultipartUploads"
            ],
            "Resource": "arn:aws:s3:::itnighq",
            "Condition": {}
          },
          {
            "Effect": "Allow",
            "Action": [
              "s3:AbortMultipartUpload",
              "s3:DeleteObject",
              "s3:DeleteObjectVersion",
              "s3:GetObject",
              "s3:GetObjectAcl",
              "s3:GetObjectVersion",
              "s3:GetObjectVersionAcl",
              "s3:PutObject",
              "s3:PutObjectAcl",
              "s3:PutObjectAclVersion"
            ],
            "Resource": "arn:aws:s3:::itnighq/*",
            "Condition": {}
          },
          {
            "Effect": "Allow",
            "Action": "s3:ListAllMyBuckets",
            "Resource": "*",
            "Condition": {}
          }
        ]
      }
  
  </pre>
  <p>But I'm getting this error message:
  <b>
  Policy has invalid action - s3:ListAllMyBuckets
  </b>
  It doesn't seem to like <strong>&quot;Resource&quot;: &quot;*&quot;</strong> , I've also tried to use **arn:aws:s3:::****, but it doesn't work either.</p>
  <p>Anyone has any clue?</p>