<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic nodejs lambda layers not finding module in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/nodejs-lambda-layers-not-finding-module/m-p/51609#M19072</link>
    <description>&lt;P&gt;I have a hello Lambda using oneagent that works if I include the node_module in the zip I upload for the Lambda. I followed the instructions from the enable serverless dialog.&lt;/P&gt;
&lt;P&gt;I'm trying to move the node_modules to a Lambda Layer with the nodejs/node_modules/@dynatrace/oneagent pathing. I know the layer can be found as I can load mysql. It seems like something is wrong with my handler reference but who knows. Has anyone tried this?&lt;/P&gt;
&lt;P&gt;Here's the reference that worked before. node_modules/@dynatrace/oneagent.main$handler&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Mar 2022 12:49:01 GMT</pubDate>
    <dc:creator>william1_master</dc:creator>
    <dc:date>2022-03-25T12:49:01Z</dc:date>
    <item>
      <title>nodejs lambda layers not finding module</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/nodejs-lambda-layers-not-finding-module/m-p/51609#M19072</link>
      <description>&lt;P&gt;I have a hello Lambda using oneagent that works if I include the node_module in the zip I upload for the Lambda. I followed the instructions from the enable serverless dialog.&lt;/P&gt;
&lt;P&gt;I'm trying to move the node_modules to a Lambda Layer with the nodejs/node_modules/@dynatrace/oneagent pathing. I know the layer can be found as I can load mysql. It seems like something is wrong with my handler reference but who knows. Has anyone tried this?&lt;/P&gt;
&lt;P&gt;Here's the reference that worked before. node_modules/@dynatrace/oneagent.main$handler&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 12:49:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/nodejs-lambda-layers-not-finding-module/m-p/51609#M19072</guid>
      <dc:creator>william1_master</dc:creator>
      <dc:date>2022-03-25T12:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: nodejs lambda layers not finding module</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/nodejs-lambda-layers-not-finding-module/m-p/51610#M19073</link>
      <description>&lt;P&gt;Hi Bill,&lt;BR /&gt;I'm afraid that just moving the node_modules into a Lambda Layer would not work.&lt;BR /&gt;What would be the use case for such move?&lt;/P&gt;&lt;P&gt;Best&lt;BR /&gt;Michal Nalezinski&lt;BR /&gt;Technical Product Manager&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Sep 2019 09:53:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/nodejs-lambda-layers-not-finding-module/m-p/51610#M19073</guid>
      <dc:creator>michal_nalezin</dc:creator>
      <dc:date>2019-09-18T09:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: nodejs lambda layers not finding module</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/nodejs-lambda-layers-not-finding-module/m-p/51611#M19074</link>
      <description>&lt;P&gt;The main use case is we have created a lambda layer of common packages at specific versions that we want each Lambda to use. It makes debugging issues much easier and faster if you know what's going on and don't have to scan the packages for differences. The common packages layer is versioned and not modified based on the whim of every dev. We currently have multiple teams that will use our layers based on their need.&lt;/P&gt;&lt;P&gt;Currently, every dev will have to add the package to their lambda. They may or may not optimize for deployment or may target the wrong node version. We expect several hundred new lambdas in the next year. This also means upgrades will be painful.&lt;/P&gt;&lt;P&gt;Also - the general benefits of using layers. Smaller deployment package, single code base, etc.&lt;/P&gt;&lt;P&gt;So bottom line is code management and scaling.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Sep 2019 14:26:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/nodejs-lambda-layers-not-finding-module/m-p/51611#M19074</guid>
      <dc:creator>william1_master</dc:creator>
      <dc:date>2019-09-18T14:26:38Z</dc:date>
    </item>
  </channel>
</rss>

