-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
59 lines (53 loc) · 1.39 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
57
58
59
service: sample-app
frameworkVersion: '3'
package:
individually: true
plugins:
# Deploy stack to locally running localstack instance for local development
- serverless-localstack
# Keep environment specific configurations in separate files
custom:
# Localstack configuration follows (see https://www.serverless.com/plugins/serverless-localstack)
localstack:
debug: false
stages:
- local
autostart: false # Start LocalStack in Docker on Serverless deploy
lambda:
# Enable this flag to improve performance (may not work on Windows)
mountCode: False
provider:
name: aws
runtime: nodejs14.x
deploymentMethod: direct
region: us-east-1
functions:
sampleLambda:
handler: com.sample.SampleLambda::handleRequest
runtime: java11
name: sampleLambda
memorySize: 512
timeout: 30
package:
artifact: target/sample-lambda-1.0.0.jar
events:
- http:
path: /hello
method: GET
environment:
tags:
resources:
Resources:
SampleTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: healthKey
AttributeType: S
BillingMode: PAY_PER_REQUEST
KeySchema:
- AttributeName: healthKey
KeyType: HASH
TableName: sample
PointInTimeRecoverySpecification:
PointInTimeRecoveryEnabled: true