Editing Cloudformation AWS::S3::Bucket example

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 9: Line 9:
 
  Resources:
 
  Resources:
 
   TemplatesBucket:
 
   TemplatesBucket:
     Type: [[AWS::S3]]::Bucket
+
     Type: AWS::S3::Bucket
 
     DeletionPolicy: Retain
 
     DeletionPolicy: Retain
 
     UpdateReplacePolicy: Retain
 
     UpdateReplacePolicy: Retain
 
     Properties:
 
     Properties:
       BucketName: [[!Ref]] BucketName
+
       BucketName: !Ref BucketName
 
       PublicAccessBlockConfiguration:
 
       PublicAccessBlockConfiguration:
 
         BlockPublicAcls: true
 
         BlockPublicAcls: true
Line 26: Line 26:
  
 
== Related ==
 
== Related ==
* https://s3.us-west-2.amazonaws.com/cloudformation-templates-us-west-2/S3_Website_Bucket_With_Retain_On_Delete.template
 
 
 
* <code>[[aws cloudformation deploy]] --template-file  /path_to_template/template.json --stack-name my-new-stack-name --parameter-overrides BucketName={bucket_name}</code>
 
* <code>[[aws cloudformation deploy]] --template-file  /path_to_template/template.json --stack-name my-new-stack-name --parameter-overrides BucketName={bucket_name}</code>
  
 
  "[[ResourceStatusReason]]": "Bad Request (Service: Amazon S3; Status Code: 400; Error Code: 400 Bad Request; Request ID: 1234567; S3 Extended Request ID: Ixxxxxxx=; Proxy: null)",
 
  "[[ResourceStatusReason]]": "Bad Request (Service: Amazon S3; Status Code: 400; Error Code: 400 Bad Request; Request ID: 1234567; S3 Extended Request ID: Ixxxxxxx=; Proxy: null)",
 
"[[ResourceStatusReason]]": "Bucket name should not contain uppercase characters"
 
 
"ResourceStatusReason": "yourbucketname [[already exists]]"
 
  
 
== Related ==
 
== Related ==
 
* <code>[[aws s3 mb]]</code>
 
* <code>[[aws s3 mb]]</code>
 
* <code>[[aws s3api create-bucket]]</code>
 
* <code>[[aws s3api create-bucket]]</code>
* <code>[[aws cloudformation deploy]]</code>
 
* <code>[[aws cloudformation describe-stack-events]]</code>
 
* <code>[[Successfully created/updated stack]] - YOUR-STACK-NAME</code>
 
  
 
== See also ==
 
== See also ==
* {{aws cloudformation deploy}}
 
 
* {{CloudFormation}}
 
* {{CloudFormation}}
 
[[Category:AWS]]
 

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: