Skip to content

Instantly share code, notes, and snippets.

@MatthewJDavis
Created September 18, 2017 21:15
Show Gist options
  • Select an option

  • Save MatthewJDavis/4cd996382161a809ef14fdc8055e1e06 to your computer and use it in GitHub Desktop.

Select an option

Save MatthewJDavis/4cd996382161a809ef14fdc8055e1e06 to your computer and use it in GitHub Desktop.
S3 bucket template
AWSTemplateFormatVersion: 2010-09-09
Description: Creates an S3 bucket giving the owner full control.
Parameters:
BucketName:
Description: Name of the S3 bucket must be globally unique and can contain lowercase characters, numbers and hyphens
Type: String
ProjectTag:
Description: Tag value for the project
Type: String
Resources:
Bucket:
Type: "AWS::S3::Bucket"
Properties:
AccessControl: BucketOwnerFullControl
BucketName: !Ref BucketName
Tags:
-
Key: Project
Value: !Ref ProjectTag
Outputs:
DomainName:
Value: !GetAtt
- Bucket
- DomainName
Description: DomainName of the bucket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment