Guest User

Untitled

a guest
Nov 6th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. AWSTemplateFormatVersion: '2010-09-09'
  2. Transform: AWS::Serverless-2016-10-31
  3. Description: Example template
  4.  
  5. Parameters:
  6.  
  7. DATABASE_USERNAME:
  8. Description: 'Required. The Database username'
  9. Type: 'String'
  10.  
  11. DATABASE_PASSWORD:
  12. Description: 'Required. The Database password'
  13. Type: 'String'
  14.  
  15. DATABASE_HOSTNAME:
  16. Description: 'Required. The Database hostname'
  17. Type: 'String'
  18.  
  19. Resources:
  20.  
  21. GetOrdersFunction:
  22. Type: AWS::Serverless::Function
  23. Properties:
  24. CodeUri: orderlambda/
  25. Handler: app.lambdaHandler
  26. Runtime: nodejs8.10
  27. Environment:
  28. Variables:
  29. DB_USER: !Ref DATABASE_USERNAME
  30. DB_PASSWORD: !Ref DATABASE_PASSWORD
  31. DB_HOSTNAME: !Ref DATABASE_HOSTNAME
  32. Events:
  33. HelloWorld:
  34. Type: Api
  35. Properties:
  36. Path: /orders
  37. Method: get
Add Comment
Please, Sign In to add comment