-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless.yml
56 lines (50 loc) · 1.65 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
47
48
49
50
51
52
53
54
55
56
service: janelia-neuronbridge-web
useDotenv: true
plugins:
- serverless-finch
- serverless-deployment-bucket
- serverless-build-client
- serverless-export-env
custom:
stage: ${opt:stage, self:provider.stage}
region : ${opt:region, self:provider.region}
export-env:
filename: .env
overwrite: true
enbleOffline: true
buildClient:
packager: npm
command: run build
verbose: true
client:
bucketName: ${self:service}-${self:custom.stage}
distributionFolder: build
indexDocument: index.html
errorDocument: index.html
objectHeaders:
index.html:
- name: Cache-Control
value: max-age=0
provider:
name: aws
region: us-east-1
stage: dev
deploymentBucket:
name: janelia-serverless-deployments
blockPublicAccess: true
tags:
PROJECT: NeuronBridge
VERSION: ${file(./package.json):version}
DEVELOPER: ${env:USER}
environment:
REACT_APP_LEVEL: ${self:custom.stage}
# REACT_APP_DATA_TARGET: dev
REACT_APP_VERSION: ${file(./package.json):version}
REACT_APP_IDENTITY_POOL_ID: ${cf:janelia-neuronbridge-cds-${self:custom.stage}.IdentityPoolId}
REACT_APP_USERPOOL_ID: ${cf:janelia-neuronbridge-cds-${self:custom.stage}.UserPoolId}
REACT_APP_USERPOOL_CLIENT_ID: ${cf:janelia-neuronbridge-cds-${self:custom.stage}.UserPoolClientId}
REACT_APP_SEARCH_ENDPOINT: ${cf:janelia-neuronbridge-cds-${self:custom.stage}.HttpApiUrl}
REACT_APP_GRAPHQL_ENDPOINT: ${cf:janelia-neuronbridge-cds-${self:custom.stage}.GraphQlApiUrl}
REACT_APP_SEARCH_BUCKET: ${cf:janelia-neuronbridge-cds-${self:custom.stage}.SearchBucketName}
resources:
- ${file(resources/buckets.yml)}