Computeless Servering

Several years ago I was tinkering with AWS API Gateway and reading through the documentation on the Apache Velocity Template Language (VTL) that is used for data transformations. I noticed that one of the built-in variables was $context.identity.sourceIp which contained the client’s IP address.1 It occurred to me that I could make one of those “what’s my IP” services by pointing the root of the API gateway at a MOCK integration with a response of type text/plain containing only that variable. No Lambda function was needed. I tried it and it worked as expected. It has been running in one of my accounts for years and I use it in many of my build scripts (there isn’t much point to this since AWS has their own at https://checkip.amazonaws.com/). ...

2026-04-19 · Rob C.