由于遇到不受支持的布尔值 true,aws sam bucket 部署失败
aws sam bucket deploy failed due to Encountered unsupported boolean value true
我试图用 sam 部署 S3:Bucket。但是当我 运行 sam 部署时,它失败并显示错误消息“遇到不支持的布尔值 true”
知道为什么吗?
模板
TestFileBucket:
Type: AWS::S3::Bucket
Properties:
PublicAccessBlockConfiguration:
BlockPublicAcls : true
BlockPublicPolicy : true
IgnorePublicAcls : true
RestrictPublicBuckets : true
CorsConfiguration:
CorsRules:
- AllowedHeaders:
- "*"
AllowedMethods:
- GET
- PUT
AllowedOrigins:
- "*"
Id: devCorsRule
MaxAge: 3600
BucketName: !Sub ${Environment}-testbucket
查看 Sandor Bankos 的评论以获得答案
我试图用 sam 部署 S3:Bucket。但是当我 运行 sam 部署时,它失败并显示错误消息“遇到不支持的布尔值 true”
知道为什么吗?
模板
TestFileBucket:
Type: AWS::S3::Bucket
Properties:
PublicAccessBlockConfiguration:
BlockPublicAcls : true
BlockPublicPolicy : true
IgnorePublicAcls : true
RestrictPublicBuckets : true
CorsConfiguration:
CorsRules:
- AllowedHeaders:
- "*"
AllowedMethods:
- GET
- PUT
AllowedOrigins:
- "*"
Id: devCorsRule
MaxAge: 3600
BucketName: !Sub ${Environment}-testbucket
查看 Sandor Bankos 的评论以获得答案