serverless-client-s3 icon indicating copy to clipboard operation
serverless-client-s3 copied to clipboard

Can I setting s3 buckets policy locally?

Open daikiterai opened this issue 8 years ago • 3 comments

Dear serverless-team.

S3 buckets policy setting is fixed in index.js. Therefore,we always change to s3 buckets policy at deploy time. We would like to setting to s3 buckets policy in local serverless project. Do you have any ideas?

let policy = { Version: "2008-10-17", Id: "Policy1392681112290", Statement: [ { Sid: "Stmt1392681101677", Effect: "Allow", Principal: { AWS: "_" }, Action: "s3:GetObject", Resource: "arn:aws:s3:::" + this.bucketName + '/' } ] };

Thanks.

daikiterai avatar Apr 27 '16 08:04 daikiterai