-
Notifications
You must be signed in to change notification settings - Fork 38
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
Dynamic table resolving from serverless.yml
after upgrade to Serverless 3
#124
Comments
Same here! I couldn't find a solution or workaround. |
@jenssimon , did you find a solution? I found here the details about the Serverless initialisation after version 3:
So, I just initialised manually the required variables, but it stills not load as the
|
Thanks @robsonmafra for your input. Haven't had time to check on this for a while. I decided to process the configuration without Serverless and take care of the variables by myself. In my case I use some hard coded values for now. But would be nice to have a smarter generic solution (as it was for serverless < 3). |
A more general method is using output of the print command, which helps if you've used subsitutions in your yaml, or have defined it in TypeScript and want to consume it in JavaScript. For example:
|
I try to upgrade a project to Serverless 3 which uses this code from readme in
jest-dynamodb-config.js
.Works perfect for Serverless 2. But with Serverless 3 I get this error:
Is there an updated version of that code that works with Serverless 3?
Thanks!
The text was updated successfully, but these errors were encountered: