-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yaml
48 lines (43 loc) · 1.12 KB
/
serverless.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
service: sls-s3-portfolio-website-lfed
provider:
name: aws
runtime: nodejs14.x
region: us-east-1
plugins:
- serverless-s3-deploy
resources:
Resources:
WebsiteBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: luisfernando.engineer
PublicAccessBlockConfiguration:
BlockPublicAcls: false
IgnorePublicAcls: false
BlockPublicPolicy: false
RestrictPublicBuckets: false
WebsiteConfiguration:
IndexDocument: index.html
ErrorDocument: error.html
BucketPolicy:
Type: AWS::S3::BucketPolicy
Properties:
Bucket:
Ref: WebsiteBucket
PolicyDocument:
Statement:
- Sid: PublicReadGetObject
Effect: Allow
Principal: "*"
Action:
- s3:GetObject
Resource:
Fn::Join:
- ""
- - "arn:aws:s3:::"
- Ref: WebsiteBucket
- "/*"
custom:
s3Sync:
- bucketName: luisfernando.engineer
localDir: MySimplyPortfolioWebsite