Skip to content

Instantly share code, notes, and snippets.

@danielkhan
Last active July 5, 2018 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielkhan/e05eb3360c031108b19a4353dbc88595 to your computer and use it in GitHub Desktop.
Save danielkhan/e05eb3360c031108b19a4353dbc88595 to your computer and use it in GitHub Desktop.
# 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