Skip to content

Instantly share code, notes, and snippets.

@seomago
Created October 25, 2022 08:01
Show Gist options
  • Save seomago/d89bc99ff19fc6e14511825f7aec3a3d to your computer and use it in GitHub Desktop.
Save seomago/d89bc99ff19fc6e14511825f7aec3a3d to your computer and use it in GitHub Desktop.
bucket1.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Template test-MyBucket1 and 2 by manuel.cruanes 2022-09-29
Resources:
MyBucket2:
Type: AWS::S3::Bucket
Properties:
BucketName: photobox-dev-test-my-bucket2
Tags:
-
Key: "Owner"
Value: "[email protected]"
MyBucket1:
Type: AWS::S3::Bucket
Properties:
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: 'AES256'
BucketName: photobox-dev-test-my-bucket1
Tags:
-
Key: "Department"
Value: "test"
-
Key: "Project"
Value: "test"
-
Key: "Environment"
Value: "test"
-
Key: "Owner"
Value: "[email protected]"
Outputs:
MyBucket1Arn:
Value: !GetAtt MyBucket1.Arn
MyBucket1DomainName:
Value: !GetAtt MyBucket1.DomainName
MyBucket1WebsiteURL:
Value: !GetAtt MyBucket1.WebsiteURL
MyBucket2WebsiteURL:
Value: !GetAtt MyBucket2.WebsiteURL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment