compose icon indicating copy to clipboard operation
compose copied to clipboard

"--param" option is not supported

Open chkrause opened this issue 2 years ago • 10 comments

Unfortunatly I can't pass param to the serverless compose. serverless deploy --stage del --param="AccountIdZendesk=xxxxxxx"

Cannot resolve variable at "custom.AccountIdZendesk": The param "AccountIdZendesk" cannot be resolved from CLI options or stage params. If you are using Serverless Framework Compose, make sure to run commands via Compose so that all parameters can be resolved

The "--param" option is not supported (yet) in Serverless Framework Compose

I have currently 2 serverless projects depending on each other. One of the projects requires a parameter that has to be defined at deployment time.

chkrause avatar Apr 28 '22 11:04 chkrause

Thanks for opening this. At the moment (as you experienced) it's not possible with Compose to pass parameters with CLI options, or define stage parameters in YAML config.

It's probably something we want to support eventually though, so let's keep this issue open 👍

mnapoli avatar Apr 28 '22 14:04 mnapoli

The issue is that you can not longer use serverless package --service service-b as a result because params would be undefined is not passed from another service.

semiautomatixfu avatar Jul 19 '22 04:07 semiautomatixfu

Could you clarify @semiautomatixfu? The params should still be passed, but --param CLI option is not supported on Compose level

pgrzesik avatar Jul 19 '22 10:07 pgrzesik

@pgrzesik I'm referencing this issue https://github.com/serverless/compose/issues/148

semiautomatixfu avatar Jul 20 '22 00:07 semiautomatixfu

is there any major blocker here just supporting passthrough for cli args that aren't supported 1st class by compose? it seems that the additional comments raised that cause concern are more about specialised usage of compose, I'd simply like to define core env variables to provide consistently across deployment during a CD pipeline.

cmcnicholas avatar Apr 22 '23 00:04 cmcnicholas

Any update on this feature request ?

Kayyow avatar Jun 16 '23 15:06 Kayyow

Hello any update on this feature?

sadashiv-sumasoft avatar Oct 12 '23 05:10 sadashiv-sumasoft

Hi @mnapoli , is anyone looking at this feature?

akordzik avatar Dec 20 '23 09:12 akordzik

Yes - it will be very usefull

Maybe you know workarounds to pass params on deploy? Because do not wont to hard code it in serverless.yml

trykovyura avatar Jan 02 '24 18:01 trykovyura

@akordzik I no longer work at Serverless Inc. so I cannot answer that.

mnapoli avatar Jan 02 '24 20:01 mnapoli