Could not resolve substitution to a value: ${akka.stream.materializer} in AWS Lambda : <p>I have a java application, in which I'm using the <code>Flink Api</code>. So basically what I'm trying to do with the code, is to create two Datasets with few records and then register them as two tables along with the necessary fields.</p>

<pre><code> DataSet&lt;Company&gt; comp = env.fromElements(
                new Company("Aux", 1),
                new Company("Comp2", 2),
                new Company("Comp3", 3));

        DataSet&lt;Employee&gt; emp = env.fromElements(
                new Employee("Kula", 1),
                new Employee("Ish", 1),
                new Employee("Kula", 3));


        tEnv.registerDataSet("Employee", emp, "name, empId");
        tEnv.registerDataSet("Company", comp, "cName, empId");
</code></pre>

<p>And then I'm trying to join these two tables using the <code>Table API</code>:</p>

<pre><code>Table anotherJoin = tEnv.sql("SELECT Employee.name, Employee.empId, Company.cName FROM " +
                "Employee RIGHT JOIN Company on Employee.empId = Company.empId");
</code></pre>

<p>And I'm just printing the results on the console. <strong>This works perfectly locally</strong> on my machine. I created a <code>fat-jar</code> by using the <code>maven-shade-plugin</code> with the dependencies and I'm trying to execute it in AWS <code>Lambda</code>.</p>

<p>So when I try to execute it there, I'm being thrown with the following exception (I'm posting only the first few lines):</p>

<blockquote>
  <p>reference.conf @ file:/var/task/reference.conf: 804: Could not resolve
  substitution to a value: ${akka.stream.materializer}:
  com.typesafe.config.ConfigException$UnresolvedSubstitution
  com.typesafe.config.ConfigException$UnresolvedSubstitution:
  reference.conf @ file:/var/task/reference.conf: 804: Could not resolve
  substitution to a value: ${akka.stream.materializer} at
  com.typesafe.config.impl.ConfigReference.resolveSubstitutions(ConfigReference.java:111)
  at
  com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179)
  at
  com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142)</p>
</blockquote>

<p>I extracted the jar before executing it in Lambda, and happened to see all the dependencies were there. I can't figure out where is it going wrong?</p>

<p>Any help could be appreciated.</p>
