Skip to content

Instantly share code, notes, and snippets.

@MatthewJDavis
Created August 31, 2017 19:59
Show Gist options
  • Select an option

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

Select an option

Save MatthewJDavis/c60e7558d4adbba4b1e40eb5dbd061cf to your computer and use it in GitHub Desktop.
Simple S3 bucket yaml cloudformation
AWSTemplateFormatVersion: 2010-09-09
Description: Creates an S3 bucket given 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