GitXplorerGitXplorer
d

serverless-lambda-sample

public
0 stars
1 forks
0 issues

Commits

List of commits on branch master.
Verified
d260f98669c8dc2d0ee16e990c27135b70ab7d83

Update handler.js

ddanielkhan committed 7 years ago
Verified
e0c60477ab226abf9967f65f0f0c665f49b3d2e3

Update handler.js

ddanielkhan committed 7 years ago
Unverified
4c132d8257f89992b4ce886cfba96b9fa297a1de

changes to readme

committed 7 years ago
Unverified
9184ad32c7ad59ab17dd818c1f7054147e01cefc

Added readme and changed serverless defaults

committed 7 years ago
Unverified
87afa6809005e077aff45e5a93fe6fd63755d519

Initial commit

committed 7 years ago

README

The README file for this repository.

Serverless / Node.js / Dynatrace

This is a sample app that shows how to deploy Dynatrace via serverless

Setup

  1. Install Node.js
  2. Install serverless npm install -g serverless
  3. Sett up AWS credentials as described in the serverless docu
  4. Install AWS CLI
  5. Use aws configure to set credentials and zone (us-east-1)
  6. Open Dynatrace and make sure that Lambda support is enabled
  7. Click on 'Deploy Dynatrace', select 'Set up Serverless integration' and then 'Node.js'
  8. Copy the DT_LAMBDA_OPTIONS environment settings
  9. Paste the json into a file .dynatrace-aws.json - make sure it isn't committed (.gitignore is already set up)
  10. In the terminal run
aws ssm put-parameter --name "/dynatrace/lambda/serverless-node-js/DT_LAMBDA_OPTIONS" --value "file://.dynatrace-aws.json" --type String --region us-east-1 --overwrite

The config path is arbitrary - it just needs to be consistent with the setting in serverless.yml, E.g.

DT_LAMBDA_OPTIONS: ${ssm:/dynatrace/lambda/serverless-node-js/DT_LAMBDA_OPTIONS}
  1. Run serverless deploy on the console.