Skip to content

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

Open
@josoroma-zz

Description

@josoroma-zz

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions