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

How to select a stage to deploy? #66

Open
dreambit opened this issue Jun 18, 2022 · 1 comment
Open

How to select a stage to deploy? #66

dreambit opened this issue Jun 18, 2022 · 1 comment

Comments

@dreambit
Copy link

serverless deploy --stage dev does not work

what is a replacement for a stage at yandex.cloud? folder?

@nikolaymatrosov
Copy link
Contributor

Not necessarily. By default, Yandex Cloud serverless plugin uses the config of yc CLI to get credentials to authorize with. This config also contains the cloud and folder ids that will be used as defaults when you deploy your application. So if you want to deploy your different stages to different folders, you'll have to switch yc profiles.

If you use --stage dev and --stage prod with serverless deploy command, it will create resources containing the provided stage as a part of the resource's name. E.g., bot-dev-api, where bot is the application name, dev is the stage name, and api is the function name. The name for --stage prod will be bot-prod-api. And Serverless CLI will create both of the functions in the same folder.

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