cyclopsgroup / cym2

CyclopsGroup Maven plugins and extensions
Apache License 2.0
5 stars 1 forks source link

All the files are private #3

Closed micheleorsi closed 9 years ago

micheleorsi commented 9 years ago

Hi tried this plugin, but all the file are uploaded as "private" and not "public". Is there a way to specify I want all the files and directories public? (I am uploading a site for documentation purpose)

jiaqi commented 9 years ago

The bucket needs to be open to public first. Have you set bucket policy? My bucket policy is

{ "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": { "AWS": "" }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::mybucket/" } ] }

micheleorsi commented 9 years ago

You're right! Sorry but I didn't know very well the bucket policy. Now it's more clear and it works!

Thanks