Using PutObject is not going to sync S. For that, you need to some more actions, such as 'DerleteObject', 'GetBucketLOcation','GetObject','ListBucket', and 'PutObject' and after that use the below given policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Resource": [
"arn:aws:s3:::YOUR_BUCKET_NAME",
"arn:aws:s3:::YOUR_BUCKET_NAME/*"
],
"Sid": "Stmt1464826210000",
"Effect": "Allow",
"Action": [
"s3:DeleteObject",
"s3:GetBucketLocation",
"s3:GetObject",
"s3:ListBucket",
"s3:PutObject"
]
}
]
}
Looking forward to master AWS? Come & join AWS Certification by Intellipaat.