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
EventBus.ts retrierFn lacks a configuration option for runtime: option #3747
Comments
I'm also seeing the runtime for lambda functions hardcoded at |
Hacky fix for anyone who runs into this in the future: run this command in the directory where your
What this does is You can use this on older versions of SST as well if you can't upgrade to the latest version for whatever reason, for example SST 2.19.1 uses |
@cold-logic right what is that about? can someone provide some clarity on why the Function, and EventBus's runtimes are hardcoded? sst/packages/sst/src/constructs/Function.ts Line 921 in 6f8fb48
|
See EventBus.ts in the definition of retrierFn
sst/packages/sst/src/constructs/EventBus.ts
Line 611 in ea060f1
runtime
is hard-coded toNODEJS_18_X
I want to be able to manually configure this
runtime
value to a different version of node for compliance purposes within my organization.I am proposing this could be done through a configuration parameter in the third argument to the
subscribe
method, much like thedefaults
block in theFunction
constructor.Like this for example:
In the absence of this additional parameter, it would default to whatever the function default was provided to the function. If that is also empty, it would default to Node JS 18.x (as it does now), following this logic:
The text was updated successfully, but these errors were encountered: