Skip to content

Commit

Permalink
Updated cf template
Browse files Browse the repository at this point in the history
  • Loading branch information
nmagee committed Jun 21, 2024
1 parent 31d35a3 commit e8011bf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions s3/s3-website-with-cloudfront.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ Parameters:
S3BucketName:
Type: String
Description: The name for the S3 bucket - must be unique across all of AWS
AllowedPattern: '^[a-z0-9]{5,40}$'

Resources:
S3Bucket:
DeletionPolicy: 'Delete'
Metadata:
Comment: 'Bucket to store some data'
Properties:
Expand All @@ -19,7 +17,6 @@ Resources:
IndexDocument: index.html
ErrorDocument: error.html
Type: 'AWS::S3::Bucket'
DeletionPolicy: Delete

S3BucketPolicy:
Metadata:
Expand All @@ -38,7 +35,6 @@ Resources:
Resource:
- !Sub 'arn:aws:s3:::${S3Bucket}/*'
Type: 'AWS::S3::BucketPolicy'
DeletionPolicy: Delete

CfDistribution:
Metadata:
Expand Down Expand Up @@ -100,4 +96,4 @@ Outputs:
Value: !GetAtt
- S3Bucket
- WebsiteURL
Description: 'URL for website hosted on S3'
Description: 'URL for website hosted on S3'

0 comments on commit e8011bf

Please sign in to comment.