-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
42 lines (36 loc) · 982 Bytes
/
serverless.yml
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
service: wallbox
app: wallbox
org: fedeiglesias
plugins:
- serverless-pseudo-parameters
- serverless-plugin-scripts
- serverless-s3-sync
provider:
name: aws
runtime: nodejs16.x
custom:
domain:
# AWS domain id
id: "Z008637234M1UDGEMIGLS"
name: pixium.io
subdomain: wallbox.pixium.io
# AWS certificate domain arn
certificateArn: arn:aws:acm:us-east-1:989257975727:certificate/af08c4cc-6b8d-4b21-a831-dce800e7001c
# Bucket name
s3Bucket: ${service.name}-bucket
s3Sync:
- bucketName: ${custom.s3Bucket}
localDir: dist
params:
- index.html:
CacheControl: "no-store, no-cache"
- service-worker.js:
CacheControl: "no-store, no-cache"
scripts:
hooks:
"before:deploy:deploy": npm run build
resources:
- ${file(aws/resources/s3-bucket.yml)}
- ${file(aws/resources/s3-policies.yml)}
- ${file(aws/resources/cf-distribution.yml)}
- ${file(aws/resources/dns-records.yml)}