Only allow calls originating from specific IPs?

I have a Serverless Framework application that should only be callable from specific IP addresses. What options do I need to set in serverless.yml so that API Gateway only accepts requests from specific IPs?

@jamestharpe Here is how:

That describes a manual process. I’m looking to automate.

@jamestharpe maybe you can write a serverless plugin to automate it…

:roll_eyes: … and how do I do that?

Checkout the docs to get started with plugins. If you need specific help after that, let us know.