serverless.yml 495 B

1234567891011121314151617181920212223242526
  1. service: gitlab-example
  2. provider:
  3. name: aws
  4. region: ${env:AWS_REGION}
  5. runtime: nodejs10.x
  6. environment:
  7. A_VARIABLE: ${env:A_VARIABLE}
  8. plugins:
  9. - serverless-offline
  10. - serverless-jest-plugin
  11. - serverless-stack-output # Allows us to output endpoint url to json file
  12. functions:
  13. hello:
  14. handler: src/handler.hello
  15. events:
  16. - http:
  17. path: hello
  18. method: get
  19. cors: true
  20. custom:
  21. output:
  22. handler: src/handler.hello
  23. file: stack.json