title: Integrating AWS Lambda and HTTP endpoint together in API Gateway?
body: <p>Let's say I have a service to allow people to upload photos. I store these photos in S3, and to make it efficient, I use Cloudfront. In order to upload these photos to S3, I was recommended to use Lambdas with API Gateway. However, I'd also like to send this request to a custom HTTP endpoint as well, and return that in the response from the Gateway. So my ideal process is:</p>
  <ol>
  <li>User submits upload photo</li>
  <li>Photo gets sent to API Gateway</li>
  <li>API Gateway calls Lambda to store photo in S3 and also forwards the request to custom backend API</li>
  <li>Backend sends back some info</li>
  <li>API Gateway sends back this info to client</li>
  </ol>
  <p>Is this possible? From the <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations.html" rel="nofollow noreferrer">integrations doc</a>, it seems like I can only do Lambdas or HTTP custom endpoint. Not sure how to do both.</p>