forked from OpenModelica/OMWebEdit_archived
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
46 lines (40 loc) · 1.09 KB
/
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
43
44
45
46
# Welcome to serverless. Read the docs
# https://serverless.com/framework/docs/
# Serverless.yml is the configuration the CLI
# uses to deploy your code to your provider of choice
# The `service` block is the name of the service
service: omwebedit
# The `provider` block defines where your service will be deployed
provider:
name: aws
runtime: nodejs12.x
region: eu-central-1
plugins:
- serverless-s3-deploy
custom:
assets:
targets:
- bucket:
Ref: OMWebEditBucket
acl: public-read
files:
- source: ./build/
globs: '**/*.html'
defaultContentType: text/html
headers:
CacheControl: no-store
- source: ./build/
globs: '**/*'
headers:
CacheControl: no-store
resources:
# AWS CloudFormation Template
Resources:
OMWebEditBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: omwebedit.perpetuallabs.io
AccessControl: PublicRead
WebsiteConfiguration:
IndexDocument: index.html
ErrorDocument: index.html