aditmalik-synechron / serverless-nested-stack

Serverless nested stack
42 stars 10 forks source link

fix deploy error on node.js 10 #12

Open desmondchou opened 4 years ago

desmondchou commented 4 years ago

added callback function parameter when calling fs.writeFile in order to address issue #9

willfarrell commented 4 years ago

@aditmalik-synechron Any chance we can get this merged in? node v8 is end of life next month on AWS.

dunin commented 4 years ago

This patch works for me as expected.

sverraest commented 4 years ago

Can this be merged please? AWS Lambda Node 8 runtime has been deprecated for a while now and this is causing deployment issues.

kedarnag138 commented 3 years ago

Facing the same issue as the rest, please have this merged. Thanks!

vKongv commented 3 years ago

Any chance that we get this merged? Or any other package that has similar functionality out there?

vKongv commented 3 years ago

How do you revamp your serverless application to below the 200 limit? I have tried several approaches and all of them are not really elegant solutions to me...

I’m currently considering serverless-additional-stacks to split all my resources into a different stack and refer them in my lambda function through ImportValue fn On 18 Sep 2020, 12:22 PM +0800, desmondchou notifications@github.com, wrote:

@desmondchou commented on this pull request. In index.js:

@@ -107,8 +107,7 @@ class ServerlessNestedPlugin {

                    this.serverless.service.provider.compiledCloudFormationTemplate = parentStack;
                    fs.writeFile(this.packagePath + '/compiled-cloudformation-template.json',
  • JSON.stringify(parentStack, null, ' '));
  • resolve();
  • JSON.stringify(parentStack, null, ' '), () => { resolve(); }); JSON.stringify(parentStack, null, ' '), resolve); This can probably work. However, I am no longer using this plugin already. I have revamped the lambda functions and shrink the no of objects. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
desmondchou commented 3 years ago

Luckily I managed to do it by consolidating handler functions. Reducing number of functions bring the total number of objects down below 200