Skip to content

Gcloud - instance does not match any allowed primitive type #171

Open
@AdamZaczek

Description

@AdamZaczek

I'm getting the following error:
Deployment failed: CONDITION_NOT_MET

 "/httpsTrigger/url": domain: validation; keyword: type; message: instance does not match any allowed primitive type; allowed: ["string"]; found: "object"

This is my serverless.yml

service: xyz
tenant: adamzaczek
app: xyz
plugins:
  - serverless-webpack
  - serverless-offline
  - serverless-dotenv-plugin
  - serverless-google-cloudfunctions
custom:
  webpack:
    includeModules: true
    webpackConfig: ./webpack.config.js
  serverless-offline:
    port: 8000

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

provider:
  name: google
  runtime: nodejs10
  project: xyz-242209
  credentials: .gcloud/keyfile.json
  region: us-central1
functions:
  graphql:
    handler: handler
    events:
      - http:
          path: graphql
  playground:
    handler: handler
    events:
      - http:
          path: playground
          method: get

I've been very happy with using serverless and aws.
I tried to make gcloud work with serverless for the entire day with no success. This is the issue that has stopped me for good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions