Created
September 18, 2017 21:15
-
-
Save MatthewJDavis/4cd996382161a809ef14fdc8055e1e06 to your computer and use it in GitHub Desktop.
S3 bucket template
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 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