创建 IP 集时出错 'WAFLimitsExceededException'

ERROR creating IPsets 'WAFLimitsExceededException'

我正在使用 python 和 boto3 创建 AWS WAFV2 配置(IP 集、webacls ..)。

我执行了它,一开始它起作用了,但后来我从控制台删除了所有创建的资源并再次执行脚本,但我得到了这个错误:

" botocore.errorfactory.WAFLimitsExceededException:调用 CreateIPSet 操作时发生错误 (WAFLimitsExceededException):AWS WAF 无法执行该操作,因为您超出了资源限制"

您可能需要在执行后续 API 调用之前进行一些延迟,因为存在 API 调用限制:

https://docs.aws.amazon.com/waf/latest/developerguide/limits.html

Maximum number of calls to any individual Create, Put, or Update action, if no other quota is defined for it One request per second