Guest User

Untitled

a guest
Jun 23rd, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. service: apis-service
  2.  
  3. package:
  4. individually: true
  5.  
  6. provider:
  7. name: aws
  8. runtime: python3.6
  9. stage: ${opt:stage}
  10. region: ap-south-1
  11. memorySize: 1024
  12. timeout: 30
  13.  
  14. apiGateway:
  15. restApiId: ${env:restid_${opt:stage}}
  16. restApiRootResourceId: ${env:rootid_v3_${opt:stage}}
  17. deploymentBucket:
  18. name: api-deployment-bucket
  19. serverSideEncryption: AES256
  20.  
  21. plugins:
  22. - serverless-package-python-functions
  23. - serverless-delete-loggroups
  24.  
  25. custom:
  26. pkgPyFuncs: # plugin configuration
  27. buildDir: _build
  28. requirementsFile: "requirements.txt"
  29. globalRequirements:
  30. - ../common_files/abc/requirements.txt
  31. globalIncludes:
  32. - ../common_files
  33. cleanup: true
  34. corsOrigin: ${env:domain}
  35.  
  36. functions:
  37. ping_api:
  38. name: ping_serveless_${opt:stage}
  39. handler: lambda_function.lambda_handler
  40. package:
  41. include:
  42. - project_files/ping
  43. artifact: ${self:custom.pkgPyFuncs.buildDir}/ping_serveless_${opt:stage}.zip
  44. events:
  45. - http:
  46. path: /ping
  47. method: get
Add Comment
Please, Sign In to add comment