我的无服务器项目创建了一个 S3 存储桶,我希望它默认启用 Transfer Acceleration。
我试过这个:
"UploaderS3Bucket": {
"Type": "AWS::S3::Bucket",
"Properties": {
"BucketName": "${uploaderBucket}-${aws-environment-lower}-${stage}",
"Accelerate": "Enabled",
"CorsConfiguration": {
"CorsRules": [
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"PUT",
"POST",
"GET",
"HEAD"
],
"AllowedOrigins": [
"*"
],
"ExposedHeaders": [
"Etag"
],
"MaxAge": "3000"
}
]
}
}
但这不是一个可接受的属性,我在 aws 文档中找不到任何合适的内容:https ://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html
在资源部署期间有什么方法可以做到这一点?