serverless-scaleway-functions icon indicating copy to clipboard operation
serverless-scaleway-functions copied to clipboard

Support nats triggers in serverless functions

Open daanpersoons opened this issue 1 year ago • 0 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Proposal

  • What is the proposed change? I want to be able to use nats triggers in my serverless.yaml for my serverless function
  • Who does this proposal help, and why? Everybody who is using nats triggers in their functions

Example

configValidationMode: off
provider:
  name: scaleway
  runtime: node22

plugins:
  - serverless-scaleway-functions

package:
  patterns:
    - "!node_modules/**"
    - "!.gitignore"
    - "!.git/**"

functions:
  first:
    handler: handler.handle
    events:
    - nats:
        name: my-nats-event
        scw_nats_config:
          subject: ">"
          mnq_nats_account_id: "AASD6RDWQLYMJOLKNLS7FBEC2SGEL3BEDDU2UVM4CRO2JKYRDCJKF56C"
          mnq_project_id: "c6cae62f-6f23-4ae2-abbe-d6394dd9e394"
          mnq_region: "fr-par"```

daanpersoons avatar Jan 22 '25 14:01 daanpersoons