Only allow calls originating from specific IPs?


#1

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?


#2

@jamestharpe Here is how: http://benfoster.io/blog/aws-api-gateway-ip-restrictions


#3

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


#4

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


#5

:roll_eyes: … and how do I do that?


#6

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