title: amazon s3 invalid principal in bucket policy
body: <p>I'm trying to create a new bucket policy in the Amazon S3 console and get the error</p>
  
  <blockquote>
    <p>Invalid principal in policy - "AWS" : "my_username"</p>
  </blockquote>
  
  <p>The username I'm using in principal is my default bucket grantee. </p>
  
  <p>My policy</p>
  
  <pre><code>{
    "Id": "Policy14343243265",
    "Statement": [
      {
        "Sid": "SSdgfgf432432432435",
        "Action": [
          "s3:DeleteObject",
          "s3:DeleteObjectVersion",
          "s3:GetObject",
          "s3:GetObjectVersion",
          "s3:GetObjectVersionAcl",
          "s3:PutObject",
          "s3:PutObjectAcl",
          "s3:PutObjectVersionAcl"
        ],
        "Effect": "Allow",
        "Resource": "arn:aws:s3:::my_bucket/*",
        "Principal": {
          "AWS": [
            "my_username"
          ]
        }
      }
    ]
  }
  </code></pre>
  
  <p>I don;t understand why I'm getting the error. What am I doing wrong?</p>