Difference between revisions of "Cloudformation AWS::S3::Bucket example"

From wikieduonline
Jump to navigation Jump to search
(Created page with " AWSTemplateFormatVersion: "2010-09-09" Description: Create an S3 bucket. Parameters: BucketName: Type: String Description: The name of the S3 bucket. Res...")
 
Line 26: Line 26:
  
 
== See also ==
 
== See also ==
* {{cfn}}
+
* {{cloudformation}}

Revision as of 10:44, 30 March 2022

AWSTemplateFormatVersion: "2010-09-09"
Description: Create an S3 bucket.

Parameters:
  BucketName:
    Type: String
    Description: The name of the S3 bucket. 

Resources:
 TemplatesBucket:
    Type: AWS::S3::Bucket
    DeletionPolicy: Retain
    UpdateReplacePolicy: Retain
    Properties:
      BucketName: !Ref BucketName
      PublicAccessBlockConfiguration:
        BlockPublicAcls: true
        BlockPublicPolicy: true
        IgnorePublicAcls: true
        RestrictPublicBuckets: true
      BucketEncryption:
        ServerSideEncryptionConfiguration:
          - ServerSideEncryptionByDefault:
              SSEAlgorithm: AES256


See also

Advertising: