croque-scp / notifier

Forum notification service for Wikidot
http://notifications.wikidot.com
MIT License
13 stars 6 forks source link

Route egress via API Gateway proxy #93

Closed rossjrw closed 7 months ago

rossjrw commented 7 months ago

This circumvents costs associated with EIPs by routing external requests through an API Gateway hosting a serverless proxy.

Serverless proxy is in place already.

rossjrw commented 7 months ago

Closed: this isn't how API Gateway works at all, despite what I read which led me to believe it was a potential solution.

API Gateway is called from the internet and can trigger a private Lambda.

It cannot be called from a private Lambda to trigger something on the internet.

(It can be called from the internet to trigger something on the internet.)

Fundamentally, communication with API Gateway requires access to the API Gateway public DNS, which needs access to the internet. Therefore it is not possible to access.

There is the concept of a 'VPC Link' between the Gateway and private stuff in a VPC, but this is only used to allow the Gateway to trigger something in the VPC, not be called from it.