Skip to content

Instantly share code, notes, and snippets.

@danielkhan
Created July 10, 2018 14:41
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/c52280088d0f24082870ec997032991e to your computer and use it in GitHub Desktop.
Save danielkhan/c52280088d0f24082870ec997032991e 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