<p>I have some external services running on AWS with lambda and API gateway
I'm using istio and i've configure a service entry to api gateway and it works.</p>
<p>I'm wondering if i can use envoy filter in istio to invoke the lambda function directly like on gloo. <a href="https://docs.solo.io/gloo/1.0.0/advanced_configuration/fds_mode/" rel="nofollow noreferrer">https://docs.solo.io/gloo/1.0.0/advanced_configuration/fds_mode/</a>
so i'll be able to remove one hop</p>
<p>I see that in envoy documentation it's still experimental but i would like to know if i can use envoy filter in istio to achieve it ?
<a href="https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/aws_lambda_filter" rel="nofollow noreferrer">https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/aws_lambda_filter</a></p>

<p>Based on that <a href="https://istio.io/" rel="nofollow noreferrer">istio</a> is build on <a href="https://www.envoyproxy.io/" rel="nofollow noreferrer">envoy</a> I would say there shouldn't be any problem with that being configured in <a href="https://istio.io/latest/docs/reference/config/networking/envoy-filter/" rel="nofollow noreferrer">envoy filter</a>.</p>
<blockquote>
<p>Istio uses an extended version of the <a href="https://envoyproxy.github.io/envoy/" rel="nofollow noreferrer">Envoy</a> proxy. Envoy is a high-performance proxy developed in C++ to mediate all inbound and outbound traffic for all services in the service mesh. Envoy proxies are the only Istio components that interact with data plane traffic.</p>
</blockquote>
<p>I have checked the <a href="https://raw.githubusercontent.com/istio/istio/release-1.7/samples/httpbin/httpbin.yaml" rel="nofollow noreferrer">httpbin example</a> with <code>istioctl proxy-config bootstrap</code> and <code>envoy.filters.http.aws_lambda</code> is here, so you should be able to configure that.</p>
<pre><code>istioctl proxy-config bootstrap httpbin-779c54bf49-9m9sz | grep &quot;envoy.filters.http.aws_lambda&quot;
                    &quot;name&quot;: &quot;envoy.filters.http.aws_lambda&quot;,
</code></pre>
<hr />
<p>Additionally you mentioned that you can do that on gloo, so maybe you could try to connect both istio and gloo together, like mentioned <a href="https://istio.io/v1.5/blog/2020/istio-sds-gloo/" rel="nofollow noreferrer">here</a> and configure that with gloo?</p>
<p>There is <a href="https://docs.solo.io/gloo/latest/guides/integrations/service_mesh/gloo_istio_mtls/#istio-15x" rel="nofollow noreferrer">tutorial</a> about that in gloo documentation.</p>
