yandex-cloud/serverless-plugin

Deploy with a non-default stage prints "Unknonwn function"

IlyaSemenov opened this issue · 1 comments

Steps to reproduce

serverless deploy

then:

serverless deploy -s prod

Result

Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
      Maybe you should set AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY environment variables
Serverless: Unknonwn function "test-dev-api" found
Serverless: Function created
            api: test-prod-api
Serverless: Service deployed successfully

Expected

No "Unknonwn function "camera-api-dev-api" found" error (and obviously "Unknonwn" should read "Unknown").

Could you share your serverless.yml?
I also have such message Unknown function "xxx" found when deploying to test or prod function.
It's seems serverless reads all functions from account..