Help with Deploying Agentic Workflow Pipeline on AWS EC2 and API Whitelisting

Hi everyone,

I’m currently working on setting up an end-to-end agentic workflow pipeline that involves:

  • Multiple agent invocations
  • Image downloads
  • HTTP requests to internal and external APIs

I plan to deploy this entire workflow on an AWS EC2 instance so that it can serve downstream tasks reliably.

I’d appreciate guidance on the following key points:

  1. Invoking In-house APIs:
    What’s the recommended way to securely call internal APIs from within my workflow on EC2?
  2. Whitelisting for API Access:
    Some of our internal APIs require IP-based whitelisting. What’s the best approach to get the whitelisting done for my workflow. In case a service is deployed on a server, the server’s IP is whitelisted. Similarly, how can I approach the same for my N8N workflow.
  3. Deploying the Workflow on EC2:
    Once the pipeline is tested locally, how should I go about deploying it on EC2 for continuous or on-demand use?

Any advice or references to similar setups would be greatly appreciated!

Thanks in advance!