One guy did a PR (https://github.com/serverless/serverless/pull/5800) and badly it was merged. The change added below hard codes in generated cloudformation (so there is no chance you can optional use it or not)
"ServerlessDeploymentBucket": {
"Type": "AWS::S3::Bucket",
"Properties": {
"BucketEncryption": {
"ServerSideEncryptionConfiguration": [
{
"ServerSideEncryptionByDefault": {
"SSEAlgorithm": "AES256"
}
}
]
}
}
}
and broken all serverless examples. The change was merged one year before, I am curious why no one going to report and fix it?
Especially most examples in https://github.com/serverless/examples are broken now.
For example,
Because of the PR, I am getting this error now
An error occurred: ServerlessDeploymentBucket - API: s3:SetBucketEncryption Access Denied
I used to deploy before and they are fine.
There are so many useful examples, which I used to do show case, now I can’t use them
I have given my deploy account with administrator access permission,but I still get this error.
Someone gives some solutions with https://github.com/serverless/serverless/issues/5919, but I don’t really understand what need be done. Any hints for me?