AWS WAF update ip sets and rules specific to a region from lambda

最后都变了- 提交于 2019-12-12 04:30:02

问题


I am able to successfully update the WAF ip address rule set from lambda if the rule sets are Global (Cloudfront).

but if i create a rule set specific to region to be able to use it with APP ELB, the get-ip-set or list-ip-set api's are not retrieving the IP set specific to a region and hence I am not able to update these rule sets directly from lambda.

Is there any additional param that needs to be passed to be able to retrieve these rule sets that are region specific


回答1:


You need to be using the correct regional endpoint. The WAF endpoint that works with CloudFront is essentially a different system than each of the regional endpoints that work with ALB -- and those are all independent of each other.

Apparently it's also an entirely different initial command, aws waf-regional rather than aws waf (your initial question, with dashes shown in get-ip-set implies AWS-CLI syntax).

See also http://docs.aws.amazon.com/general/latest/gr/rande.html#waf_region



来源:https://stackoverflow.com/questions/41068378/aws-waf-update-ip-sets-and-rules-specific-to-a-region-from-lambda

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!