<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Datomic Knowledgebase - Recent questions tagged lambda</title>
<link>https://ask.datomic.com/index.php/tag/lambda</link>
<description>Powered by Question2Answer</description>
<item>
<title>Ion deploy says Function not found</title>
<link>https://ask.datomic.com/index.php/597/ion-deploy-says-function-not-found</link>
<description>&lt;p&gt;Hi! After renaming our lambdas in the &lt;code&gt;ion-config.edn&lt;/code&gt; file [[1]], the ion deploy command fails with this cause:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{:message
   &quot;Function not found:
     arn:aws:lambda:us-east-1:&amp;lt;...&amp;gt;:function:yada-Compute-&amp;lt;...&amp;gt;-yada-wss-ion-pxy
    (Service: AWSLambda; Status Code: 404; Error Code: ResourceNotFoundException; Request ID: &amp;lt;...&amp;gt;; Proxy: null)&quot;,
   :class ResourceNotFoundException})}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I know that however we rename things in this config file, the deployment steps will delete and then re-create the lambdas under the new names.&lt;/p&gt;
&lt;p&gt;If I rollback my config file, the deployment succeeds in recreating the old-named lambdas. But even then, it carries the instruction to delete the inexistent &lt;code&gt;...-yada-wss-...&lt;/code&gt; lambda, as if it thought it's really supposed to be there. What makes it think it's ever been successfully deployed?&lt;/p&gt;
&lt;p&gt;If I use my new config file and I comment out the latter half, it succeeds in deploying the &lt;code&gt;...-yada-app-...&lt;/code&gt; lambda, and I see the step machine is asked to delete the inexistent &lt;code&gt;...-yada-wss-...&lt;/code&gt; lambda.&lt;/p&gt;
&lt;p&gt;If I use my new config file without commenting any of its parts, we don't reach the step function because somehow, something expects the  &lt;code&gt;...-yada-wss-...&lt;/code&gt; to be already there before calling the step function, which it isn't.&lt;/p&gt;
&lt;p&gt;I've been trying for a few hours to find more logs about this. The error happens very quickly before the Step Function state machine could be hit, or the &lt;code&gt;CreateCodeDeployDeployme&lt;/code&gt; lambda.&lt;/p&gt;
&lt;p&gt;What's wrong about my &lt;code&gt;wss&lt;/code&gt; lambda?&lt;/p&gt;
&lt;p&gt;Thanks for any help&lt;/p&gt;
&lt;p&gt;[[1]]:&lt;br&gt;
&lt;img src=&quot;https://i.imgur.com/nKKXLs8.png&quot; alt=&quot;1&quot;&gt;&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/597/ion-deploy-says-function-not-found</guid>
<pubDate>Thu, 04 Mar 2021 23:24:34 +0000</pubDate>
</item>
</channel>
</rss>