title: Quarkus Amazon Lambda + dependency injection error
body: <p>I'm creating an AWS Lambda using the latest version of Quarkus Java framework. The Quarkus documentation says that lambdas can use injection annotations from CDI or Spring.</p>
  <p>However, I always get a NullPointerException when I try to invoke a method on any injected resource, this is my lambda witten in Quarkus:</p>
  <pre><code>public class GreetingLambda implements RequestHandler&lt;Person, List&lt;User&gt;&gt; {
  
      @Inject
      @RestClient
      JasonPlaceholderClient jasonPlaceholderClient;
  
      @Inject
      GreetingService greetingService;
  
      @Override
      public List&lt;User&gt; handleRequest(Person input, Context context) {
          greetingService.sayHello(); //throws NPE
          jasonPlaceholderClient.getUsers(); //throws NPE
          return List.of(new User (&quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;));
      }
  }
  </code></pre>
  <p>If I remove the call to the dependencies, the code runs just fine.</p>