mthenw / serverless-go-plugin

⚡️ Serverless Framework plugin that compiles Go functions on the fly. Sponsored by https://cloudash.dev
https://cloudash.dev
MIT License
103 stars 17 forks source link

Need to deploy go lang function from zip file #22

Closed sadanand25 closed 2 years ago

sadanand25 commented 3 years ago

Hello,

I am trying to deploy a zip file , it contain go language function by using the serverless.yaml

below is the file FYI. Your help is highly appreciated..

functions: Lambda: handler: src/payshield/${self:provider.stage}/-events name: '${self:provider.stage}--events-lambda' description: ' add description' role: Role package: patterns:

hexadecy commented 2 years ago

To use a zip file in serverless you have to use the artifact.

package:
  artifact: "src/xxasd/${self:provider.stage}/events.zip"