-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
51 lines (46 loc) · 1005 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
43
44
45
46
47
48
49
50
51
service: quarkus-aws-sqs
provider:
name: aws
stage: dev
region: us-east-1
versionFunctions: false
memorySize: 512
timeout: 60
tracing:
lambda: true
iamRoleStatements:
- Effect: 'Allow'
Action:
- 'lambda:InvokeFunction'
Resource: "*"
- Effect: "Allow"
Action:
- "ssm:*"
Resource: "*"
environment:
SERVICE_REGION: ${self:provider.region}
package:
individually: true
functions:
ApiJvm:
runtime: java8
handler: io.quarkus.amazon.lambda.runtime.QuarkusStreamHandler::handleRequest
package:
artifact: target/quarkus-ssm-test-1.0-SNAPSHOT-runner.jar
events:
- http:
path: /jvm/{any+}
method: ANY
ApiNative:
runtime: provided
handler: native.handler
package:
artifact: target-native/function.zip
environment:
DISABLE_SIGNAL_HANDLERS: true
events:
- http:
path: /native/{any+}
method: ANY
plugins:
- serverless-export-env