-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.example.yml
More file actions
58 lines (49 loc) · 1.56 KB
/
serverless.example.yml
File metadata and controls
58 lines (49 loc) · 1.56 KB
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
49
50
51
52
53
54
55
56
57
58
service: cdn-stack
provider: aws
deploymentBucket:
name: sls.tst.teamname.us-east-1.aws.com
blockPublicAccess: true
plugins:
- serverless-cloudfront-stack
- serverless-deployment-bucket
custom:
cdnStack:
# disabled this plugin
disabled: false
# run another plugin action for you need set credentials
beforeSpawn: 'vault:auth:aws'
# cloud front distribution alias
cname: poc.develop.teamname.us-east-1.aws.com
# create route53 cname record
createInRoute53: true
# required for cname
# certificate: arn:aws:acm:us-east-1:xxxxxxx:certificate/xxxx-xxxx-xxxx
# certificate: 'develop.teamname.us-east-1.aws.com'
# certificate: '.develop.teamname.us-east-1.aws.com'
certificate: poc.develop.teamname.us-east-1.aws.com
bucketName: poc.develop.teamname
# optional, block public acccess to s3
blockPublicAccess: true
# optional. default false AES256
bucketEncryption: true
# bucket Object history for your assets
bucketVersioning: false
# Support for Cross-Origin Resource Sharing.
enableCors: false
# default true
bucketWebHosting: false
# optional if not bucketWebHosting
indexPage: index.html
# optional if not bucketWebHosting
errorPage: error.html
# optional
syncLocalFolder: dist
# optional default PriceClass_100
priceClass: PriceClass_All
# optional tag
logging:
bucketName: poc.develop.teamname.access.logs
# optional default "Access/"
preffix: 'audit-access/'
# optional default "21" days
retentionDays: 21