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

Enable Deploying Group of Services #184

Open
1 task done
jonioni opened this issue May 21, 2023 · 1 comment
Open
1 task done

Enable Deploying Group of Services #184

jonioni opened this issue May 21, 2023 · 1 comment

Comments

@jonioni
Copy link

jonioni commented May 21, 2023

Is there an existing issue for this?

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

Use case description

Enable deploying a group of services with common prefix, e.g.

serverless deploy --services=service-a-*

Which should deploy service-a-x, service-a-y, service-a-z (defined in serverless-compose.yml) and associated dependencies.

This is useful in CI/CD environment where deployment can be split into multiple parallel jobs, without having to manually split the serverless-compose.yml file.

Alternative Solution

Enable specifying pseudo service without path and config, e.g.

service-a:
  dependsOn: [service-a-x, service-a-y, service-a-z]

And thus deploy with:

serverless deploy --service=service-a
@AlexStansfield
Copy link

Would be great to also have a way to deploy a selection of services. We use NX monorepo. Currently when we deploy it runs through deployment for every service. NX provides a way to get a list of the services affected by the code changes since the a specific commit and we'd love to use this to tell serverless compose to deploy only the affected services.

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