serverless-openfaas icon indicating copy to clipboard operation
serverless-openfaas copied to clipboard

Serverless Error: Provider "openfaas" is not supported

Open prabkumar opened this issue 6 years ago • 4 comments

When following the steps in the readme, starting from cloning the repo to running ./test-plugin.sh, the end outcome is that Serverless Error is printed in the console. I am attaching a screenshot to the post.

Expected Behaviour

./test-plugin.sh should execute without errors

Current Behaviour

Serverless Error ---------------------------------------

 Provider "openfaas" is not supported. Valid values for
 provider are: aws, azure, google, openwhisk. Please
 provide one of those values to the "provider" property
 in serverless.yml.

Steps to Reproduce (for bugs)

  1. $ git clone https://github.com/openfaas/serverless-openfaas
  2. $ ./prep.sh
  3. $ ./test-plugin.sh

Your Environment

  • Serverless version: 1.11.0

  • faas-cli * version: 0.8.3 * commit: a141dedf94ffeed84412365fd591bdc8999c5a1b

  • Docker version docker version (e.g. Docker 17.0.05 ): Docker console-log.txt 18.09.2

  • Are you using Docker Swarm or Kubernetes (FaaS-netes)?

Docker Swarm

  • Operating System and version (e.g. Linux, Windows, MacOS): MacOS 10.14

console-log.txt

prabkumar avatar Apr 25 '19 01:04 prabkumar

Thanks for your interest. Please review the status section of the README.

rgee0 avatar Apr 26 '19 16:04 rgee0

You may be able to change "openfaas" to "faas" in your YAML file.

alexellis avatar Apr 26 '19 19:04 alexellis

@alexellis I have add faas as the provider, but I still get the same error

The specified provider "faas" does not exist.

Here is my serverless yaml file

service: hello-world

provider:
  name: faas
  runtime: python3.6
  memorySize: 128
  timeout: 30
  namespace: lambda

plugins:
  - serverless-openfaas

  
functions:
  hello:
    handler: handler.hello
    namespace: lambda

engmsaleh avatar May 05 '19 13:05 engmsaleh

It worked with openfaas as a provider name, not faas

engmsaleh avatar May 05 '19 13:05 engmsaleh