How to get the original request URI in api gateway?
<p>From a lambda implemented api gateway resource, how to get the original request URI. Or even just the original path?</p>

<p>Lacking a better way I'm currently using the following three variables that I pass down to the lambda using the default request template:</p>

<pre><code>$context.resourcePath   contains the path with variable names   ex: "/blah/{var}"
$input.params().path    contains the variable names and values  ex: {"var":"something"}
$context.stage          contains the stage                      ex: "prod"
</code></pre>

<p>That's quite a hassle since it requires path variable substitution to get the original call path:</p>

<pre><code>/prod/blah/something
</code></pre>

<p>How can I get the original URL or URI?</p>