serverless/serverless-google-cloudfunctions

Question - On `sls deploy` - Is it possible to have multiple functions per serverless yml file?

Open

#221 aperta il 24 giu 2020

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (124 fork)auto 404
help wantedquestion

Metriche repository

Star
 (275 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Error: Deployment failed: RESOURCE_ERROR

image

serverless.yml

image

index.js

image

service: josoroma-gcloud-stack # Don't use the word "google" in here

provider:
  name: google
  runtime: nodejs12
  stage: dev
  region: us-east1
  # Google provider settings
  project: josoroma-gcloud-stack # Google account project id
  credentials: ~/.gcloud/josoroma-gcloud-stack-a969c850ed30.json

plugins:
  - serverless-google-cloudfunctions

package:
  exclude:
    - node_modules/**
    - .gitignore
    - .git/**

functions:
  graphql:
    handler: handlerGraphql
    events:
      - http: path

  test:
    handler: handlerTest
    events:
      - http: path

src/graphql.js

image

src/tes.js

image

Thanks!

Guida contributor