You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
"sls client deploy" command is restore bucket policy to default.
I hope setting policy in local project with config file(ex: policy.json or s-project.json) .
It's also available for CI.
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.
The text was updated successfully, but these errors were encountered: