-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathserverless.yml
40 lines (34 loc) · 921 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
service: hello
# app and org for use with dashboard.serverless.com
#app: your-app-name
#org: your-org-name
# You can pin your service to only deploy with a specific Serverless version
# Check out our docs for more details
frameworkVersion: '3'
provider:
name: aws
runtime: java11
# you can overwrite defaults here
# stage: dev
# region: us-east-1
# you can define service wide environment variables here
environment:
POWERTOOLS_LOG_LEVEL: INFO
POWERTOOLS_LOGGER_SAMPLE_RATE: 0.1
POWERTOOLS_METRICS_NAMESPACE: Coreutilities
# you can add packaging information here
package:
artifact: target/helloworld-lambda.jar
functions:
hello:
handler: helloworld.App
memorySize: 512
timeout: 20
tracing: "Active"
events:
- httpApi:
path: /hello
method: get
# Define function environment variables here
environment:
POWERTOOLS_SERVICE_NAME: hello