Reputation: 5436
I have a nodejs API running on an EC2 provisioned by Elastic Beanstalk, in Sydney region.
I setup a Cloudfront distribution to this Elastic Beanstalk.
I would like to protect my API by using AWS WAF by turning AWS WAF geolocation restriction, say to allow Australia only to be able to access the API.
What I am not sure is if I have a few Lambdas (in Sydney as well) that call to this API, will the calls be blocked when I turn WAF on?
Upvotes: 0
Views: 309
Reputation: 4421
Additionally, you can launch your Lambda function in VPC and whitelisted the NAT gateway IP in the WAF whitelist on top of Geo rule.
Upvotes: 1