Guest User

Untitled

a guest
Nov 6th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. AWSTemplateFormatVersion: '2010-09-09'
  2. Transform: AWS::Serverless-2016-10-31
  3. Description: Example template
  4.  
  5. Resources:
  6.  
  7. GetOrdersFunction:
  8. Type: AWS::Serverless::Function
  9. Properties:
  10. CodeUri: orderlambda/
  11. Handler: app.lambdaHandler
  12. Runtime: nodejs8.10
  13. Environment:
  14. Variables:
  15. DB_USER: 'admin'
  16. DB_PASSWORD: 'password'
  17. DB_HOSTNAME: 'jdbc:mysql://localhost/orders'
  18. Events:
  19. HelloWorld:
  20. Type: Api
  21. Properties:
  22. Path: /orders
  23. Method: get
Add Comment
Please, Sign In to add comment