Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# The name of the service
service: dynatrace-lambda-sample
provider:
name: aws
# The node version to use
runtime: nodejs8.10
functions:
hello:
# From the deploy screen in Dynatrace
# this points to our module and passes the basic Lambda configuration to it
handler: node_modules/@dynatrace/oneagent.index$handler
environment:
# The options from SSM
DT_LAMBDA_OPTIONS: ${ssm:/dynatrace/lambda/sample/DT_LAMBDA_OPTIONS}
events:
- http:
# The route that our service will listen to
path: weather
method: get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.