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

Serverless Compose is not supported on the Serverless CI/CD dashboard #192

Open
1 task done
codinronan opened this issue Feb 21, 2024 · 0 comments
Open
1 task done

Comments

@codinronan
Copy link

codinronan commented Feb 21, 2024

Is there an existing issue for this?

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

Use case description

From what I can tell, using serverless-compose is not supported in the CI/CD dashboard (e.g. using app.serverless.com, connected to Github to deploy on merge to a branch).

The issue is that the CI/CD process APPEARS to hard-code the following command:

serverless deploy --stage <stage> --region <region> --force --org <our org> --app <app name> --verbose

where the values in braces are taken from the serverless.yml file of the service in question (so it DOES seem to be aware of a serverless.yml file inside that folder and is reading it to get those values).

The problem is that while per-service serverless deploy understands the CLI params region, org, app and force, the serverless-compose CLI does not. So this throws an error:

Build step: serverless deploy --stage <value> --region us-east-1 --force --org <value> --app <value> --verbose 
Environment: linux, node 18.18.0, compose 1.3.0
Docs:        slss.io/docs-compose
Bugs:        github.com/serverless/compose/issues

Error:
Unrecognized CLI options: "--region", "--force", "--org", "--app"
CLI options "--region", "--force", "--org", "--app" are Serverless Framework-specific options that are not supported in Compose

You can search and/or open feature requests here: https://github.com/serverless/compose

ServerlessError: Unrecognized CLI options: "--region", "--force", "--org", "--app"

CLI options "--region", "--force", "--org", "--app" are Serverless Framework-specific options that are not supported in Compose

You can search and/or open feature requests here: https://github.com/serverless/compose
    at validateCliOptions (/data-integrations/node_modules/@serverless/compose/src/validate-options.js:70:9)
    at runComponents (/data-integrations/node_modules/@serverless/compose/src/index.js:125:3)

Verbose logs are available in ".serverless/compose.log"
Build step failed: serverless deploy --stage <value> --region us-east-1 --force --org <value> --app <value> --verbose 

How can I use a serverless-compose project in the Serverless CI/CD process?

Note: We ALSO tried changing the base path value in the settings UI, to the folder containing the sub service, and it throws a message saying "invalid serverless configuration file path". So I don't think this works either.

Proposed solution (optional)

No response

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

1 participant