Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IlyaSemenov opened this issue May 21, 2021 · 1 comment
Open

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

IlyaSemenov opened this issue May 21, 2021 · 1 comment

Comments

@IlyaSemenov
Copy link

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").

@vitalets
Copy link

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants