Closed iamchathu closed 8 years ago
Changed the AWS policy and now it works
@iamchathu what did you change? I'm having the same issue with the policy like this:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:PutAccountPublicAccessBlock",
"s3:GetAccountPublicAccessBlock",
"s3:ListAllMyBuckets",
"s3:HeadBucket"
],
"Resource": "*"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::some-bucket",
"arn:aws:s3:::some-bucket/*"
]
}
]
}
Applying this Bucket Privacy helps with this issue
{
"Id": "Policy1564065714148",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1564065712071",
"Action": "s3:*",
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::some-bucket",
"arn:aws:s3:::some-bucket/*"
],
"Principal": "*"
}
]
}
Without
acl: 'public-read',
files get uploaded.when I click the file link it says access denied.So I added
acl: 'public-read',
. It gives errorand files didn't get uploaded.