serverless/serverless-google-cloudfunctions

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

Open

#221 opened on Jun 24, 2020

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (124 forks)auto 404
help wantedquestion

Repository metrics

Stars
 (275 stars)
PR merge metrics
 (PR metrics pending)

Description

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!

Contributor guide