davidmoten / aws-maven-plugin

Deploys resources to AWS using maven

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy directory: all the files are given public read permission

beautylim opened this issue · comments

commented

I don't want to give files public read permission, could remove it? or any suggestions do you have? thanks

Doesn't happen for me, I deployed items today. Is the bucket configured for public read?

commented

I mean when upload directory, all files of the directory will be given public read permission. I saw it from readme

commented

My s3 bucket blocked all public access, when use deployS3 goal, it will fail with "goal com.github.davidmoten:aws-maven-plugin:0.2.24:deployS3 failed: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 93".
So i need remove the public read setting at deployS3 mojo.

Oh, sorry, just looked at the readme and saw the method you refer to. I'll have a look.

Now you can turn off publicRead using <publicRead>false</publicRead> in the configuration. Deployed to Maven Central version 0.2.25. This will not attempt to apply an ACL to the uploaded files but use the bucket default.

commented

Thanks a lot!