-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
30 lines (27 loc) · 840 Bytes
/
serverless.yml
File metadata and controls
30 lines (27 loc) · 840 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
service: serverless-lambda-container-otel-js-lib
frameworkVersion: '3'
provider:
name: aws
region: us-east-2
architecture: arm64 # if on MacOS M1, else use default: amd64
tracing:
lambda: true
ecr:
images:
example-image:
path: ./
functions:
api:
image:
name: example-image
timeout: 10
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: "https://in-otel.codesee.io:443/v1/traces"
CODESEE_TOKEN: "CodeSee:*** TOKEN HERE" # !! Replace with actual CodeSee token
SERVICE_NAME: serverless-lambda-container-otel-nodejs-lib-example # !! The service name will shows up on CodeSee Service Map UI
DEPLOYMENT_ENVIRONMENT: staging # The service environment
SERVICE_VERSION: 0.1.0 # optional: service version
events:
- httpApi:
path: /
method: get