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

Ability to point directly to serverless.yml config files in the same folder #153

Open
1 task done
arondeparon opened this issue Aug 18, 2022 · 3 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@arondeparon
Copy link

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Use case description

I don't really work on monorepos with lots of services, but I do like to split my deployments into several pieces (serverless-vpc.yml, serverless-rds.yml, serverless-backend.yml, etc...).

Currently, I keep these files in the root folder and deploy them individually.

I tried adding these files to serverless-compose.yml but it seems that this is not possible because they don't live in subfolders.

Is there some way to do this already?

Proposed solution (optional)

No response

@mnapoli mnapoli added the enhancement New feature or request label Aug 19, 2022
@mnapoli
Copy link
Contributor

mnapoli commented Aug 19, 2022

Hi Aron, this is indeed not supported for the same reason as for multi-region deployments. You can find a low-level explanation here: https://www.serverless.com/framework/docs/guides/compose#faq

@stephenbawks
Copy link

stephenbawks commented Nov 7, 2022

I have done multi-region by having separate folders. You would obviously need to have your serverless.yml file in both folders:

/baseInfrastructure-E2

  • serverless.yml

/baseInfrastructure-W2

  • serverless.yml

In the serverless.yml file, just need to specify the correct region.

@Hideman85
Copy link

Same need here, and actually config is not really supported is it? 🤔

services:
  backend-lambdas:
    path: ${sls:stage}-lambdas
    config: serverless-lambdas.yml
  backend-appsync:
    path: ${sls:stage}-appsync
    config: serverless-appsync.yml
    params:
      lambdaNamePrefix: ${backend-lambdas.lambdaNamePrefix}


Error:
The "--config" option is not supported (yet) in Serverless Framework Compose
You can search and/or open feature requests here: https://github.com/serverless/compose'

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

No branches or pull requests

4 participants