I am trying to create a new console policy on the Amazon S3 console and get an error message
Invalid principal in policy - "AWS": "my_username"
The username that I use as the primary is my default recipient.
My policy
{ "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" ] } } ] }
I do not understand why I get the error. What am I doing wrong?
Cyberjunkie
source share