Created
August 31, 2017 19:59
-
-
Save MatthewJDavis/c60e7558d4adbba4b1e40eb5dbd061cf to your computer and use it in GitHub Desktop.
Simple S3 bucket yaml cloudformation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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