I have the following bucket policy for Amazon S3, which is giving the following error:
Error: Invalid bucket policy syntax.
Either it is a JSON syntax error or a Policy error.
This is the policy I am trying and failing with:
{"Version": "2012-10-17","Statement": [{"Effect": "Allow","Action": ["s3:ListBucket","s3:GetBucketLocation","s3:ListBucketMultipartUploads" ],"Resource": "arn:aws:s3:::<my bucket>","Principal": {"AWS": ["arn:aws:iam::560184616970:user/<my username>" ] },"Statement": [{"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:::<my-bucket>/*","Principal": {"AWS": ["arn:aws:iam::560184616970:user/<my-username>" ] },"Statement": [{"Effect": "Allow","Action": "s3:ListAllMyBuckets","Resource": "*" }] }] }]}
Can anyone give me guidance here?