Cloudformation AWS::S3::Bucket example
Jump to navigation
Jump to search
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
Related
aws cloudformation deploy --template-file /path_to_template/template.json --stack-name my-new-stack-name --parameter-overrides BucketName={bucket_name}
"ResourceStatusReason": "Bad Request (Service: Amazon S3; Status Code: 400; Error Code: 400 Bad Request; Request ID: 1234567; S3 Extended Request ID: Ixxxxxxx=; Proxy: null)",
Related
See also
- AWS CloudFormation,
AWS::CloudFormation
AWS CloudFormation Designer, Drift detection, AWS Cloud Development Kit (CDK),aws cloudformation
,ServicesStack:
, AWS CloudFormation Linter (cfn-lint
), Former2, CloudCraft, Change sets, AWS CloudFormation Public Registry, CloudFormation snippets, CloudFormation templates, StackSets,Outputs:
,Type:
,Fn::Sub
,!Ref
, CloudFormation Parameters, AWS CloudFormation Templates, CloudFormation functions
Advertising: