serverless.yml 650 B

123456789101112131415161718192021222324252627282930313233343536
  1. service: operacion-precio-api-extr
  2. provider:
  3. name: aws
  4. region: us-west-1
  5. runtime: nodejs20.x
  6. vpc:
  7. securityGroupIds:
  8. - sg-0dcf8347897f9ba0b
  9. subnetIds:
  10. - subnet-0b5fa80770cebed1f
  11. - subnet-0515ee9bbcabead4c
  12. - subnet-080018f99a775b068
  13. plugins:
  14. - serverless-offline
  15. - serverless-plugin-typescript
  16. functions:
  17. api:
  18. handler: src/lambda-express
  19. events:
  20. - httpApi:
  21. method: GET
  22. path: /api/v1/ping
  23. - httpApi:
  24. method: ANY
  25. path: /{proxy+}
  26. graphql:
  27. handler: src/lambda-apollo
  28. events:
  29. - http:
  30. method: ANY
  31. path: /graphql