-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathserverless.yml
More file actions
38 lines (34 loc) · 913 Bytes
/
serverless.yml
File metadata and controls
38 lines (34 loc) · 913 Bytes
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
service: virtual-clinical-datastore
provider:
name: aws
runtime: dotnetcore2.1
stage: ${opt:stage, 'test'}
region: ${opt:region, 'eu-west-2'}
stackName: ${self:provider.stage}-mock-api-stack
apiName: ${self:provider.stage}-mock-api
bucketName: ${self:provider.stage}-mock-api-config
iamRoleStatements:
- Effect: Allow
Action:
- s3:*
Resource: "arn:aws:s3:::*"
package:
individually: true
functions:
data-mock:
handler: SecByte.MockApi.Server::SecByte.MockApi.Server.LambdaEntryPoint::FunctionHandlerAsync
environment:
DataSource: s3:${self:provider.bucketName}
RoutesFile: routes.json
events:
- http:
path: /{proxy+}
method: ANY
package:
artifact: ./bin/mock-api.zip
resources:
Resources:
S3ClinicalDataSource:
Type: AWS::S3::Bucket
Properties:
BucketName: ${self:provider.bucketName}