1
ใช้ CloudFormation กับที่ฝากข้อมูล S3 ที่มีอยู่
ใช้ CloudFormation ฉันต้องการตั้งค่าคุณสมบัติบางอย่างในAWS :: S3 :: Bucketบนฝากข้อมูลที่มีอยู่ กล่าวอีกนัยหนึ่งฉันไม่ต้องการสร้างที่เก็บข้อมูลฉันเพียงต้องการบังคับใช้การตั้งค่าบางอย่าง นี่เป็นตัวอย่างของ JSON ของฉัน "websitePreviewBucket": { "Type": "AWS::S3::Bucket", "Properties": { "AccessControl": "PublicRead", "VersioningConfiguration": { "Status": "Suspended" }, "BucketName": "preview.website.com", "WebsiteConfiguration": { "IndexDocument": "index.html", "ErrorDocument": "error.html" } } }, ไม่น่าแปลกใจที่สิ่งนี้ล้มเหลวในคอนโซลของ cloudformation: The following resource(s) failed to create: [websitePreviewBucket]. preview.website.com already exists ฉันสร้าง bucket preview.website.com …