serverless / compose

Orchestrate Serverless Framework in monorepos
https://serverless.com/framework/docs/guides/compose
MIT License
110 stars 15 forks source link

Support tag --force in serverless-compose #167

Open pdias94 opened 1 year ago

pdias94 commented 1 year ago

Is there an existing issue for this?

Use case description

Currently in my company I need to deploy in CI pipelines my lambda functions to multiple api gateways based on microservices by domain.

We need the deploy to ALWAYS run on the api gateway to the given stages.

Currently, serverless-compose don't have this feature.

Proposed solution (optional)

Support the --force tag in deploys using serverless-compose as same as the serverless default deploy

medikoo commented 1 year ago

@pdias94 PR's welcome!

calebplum commented 9 months ago

+1 for this - sometimes if a service deployment fails, subsequent deploys result in no changes and won't actually deploy.

For example, consider a serverless-compose stack with two services:

It's annoying because you can't just cd into Service 2's subdirectory and deploy it, since it's depended on the ARN provided in Service 1's output.

Another example is if you were to update the function code in Service 1 and want the Cloudfront distribution to point to the new version (that's passed from Service 1 to Service 2 via serverless-compose), serverless-compose won't deploy Service 2 if its template hasn't changed. I assume this is because serverless-compose doesn't take into account changed inputs when determining whether to deploy a service.

Supporting a --force option in serverless-compose would give a convenient way to deal with this.

hpandelo commented 2 months ago

+1 Please!!! It's vital sometimes. I'm spending almost all day redeploying things and checking if the version was affected or not