Skip to content

Commit

Permalink
Add blank lines around resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Perlence committed Dec 9, 2024
1 parent b62ed88 commit 5d5dd79
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cloudformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Resources:
WebsiteConfiguration:
IndexDocument: index.html
ErrorDocument: 404.html

WebsiteBucketPolicy:
Type: AWS::S3::BucketPolicy
Properties:
Expand All @@ -35,6 +36,7 @@ Resources:
Principal: "*"
Resource:
Fn::Sub: "arn:aws:s3:::${WebsiteBucket}/*"

WebsiteDistribution:
Type: AWS::CloudFront::Distribution
DependsOn: WebsiteBucket
Expand Down Expand Up @@ -83,6 +85,7 @@ Resources:
Ref: WebsiteCertificateARN
MinimumProtocolVersion: TLSv1.2_2018
SslSupportMethod: sni-only

DeployUser:
Type: AWS::IAM::User
Properties:
Expand Down Expand Up @@ -112,6 +115,7 @@ Resources:
Effect: Allow
Resource: !GetAtt ContactFormLambda.Arn
PolicyName: manage-static-website

LambdaExecutionRole:
Type: AWS::IAM::Role
Properties:
Expand All @@ -134,6 +138,7 @@ Resources:
- "ses:SendEmail"
- "ses:SendRawEmail"
Resource: "*"

ContactFormLambda:
Type: "AWS::Lambda::Function"
Properties:
Expand Down Expand Up @@ -274,4 +279,3 @@ Outputs:
ContactFormInvokeURL:
Value: !Sub 'https://${ContactFormAPIGateway}.execute-api.${AWS::Region}.amazonaws.com/${apiGatewayStageName}/'
Description: URL for invoking the Contact Form API

0 comments on commit 5d5dd79

Please sign in to comment.