简体   繁体   中英

Deploy a serverless AWS provider with different yml file name

I have two differents serverless configurations. One is the STAGE configuration and another is the SHARED configuration.

Each stage must have the same shared resources.

So I have two YML files:

  • serverless.yml
  • serverless.shared.yml

How can I call the node serverless command to deploy the "serverless.shared.yml" configuration file?

It's possible now by using the following command:

sls deploy --config serverless.shared.yml

Only the --config option works. For some reason, the shorter version, -c , which is supposed to do exactly the same according to the documentation, doesn't seem to work.

Looks like for now it's not possible.

But I've found the issue in the serverless github repo.
You can track the state of the following issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM