带有 AWS WAF 的 AWS API 网关 [英] AWS API Gateway with AWS WAF

查看:32
本文介绍了带有 AWS WAF 的 AWS API 网关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将 AWS Web 应用程序防火墙服务与 AWS API Gateway 结合使用.AWS WAF 仅适用于 AWS CloudFront 分配.

I want to use AWS Web Application Firewall service with AWS API Gateway. AWS WAF works only with AWS CloudFront distributions.

根据这篇文章 https://forums.aws.amazon.com/message.jspa?messageID=677382 API Gateway 在幕后创建 CloudFront 分配.虽然我在 CloudFront 控制台和 WAF 控制台中都没有看到这个分布.

According to this post https://forums.aws.amazon.com/message.jspa?messageID=677382 API Gateway creates a CloudFront distribution behind the scenes. Although I don't see this distribution neither in the CloudFront console nor in the WAF console.

有什么方法可以使用 API Gateway 为 WAF 创建的 CloudFront 分配吗?

Is there any way to make use of the CloudFront distribution created by API Gateway for WAF?

推荐答案

遗憾的是没有,API Gateway 不提供对支持 CloudFront 分发的访问.要使用 WAF,您必须创建第二个发行版,这虽然效率低下,但应该可以正常工作.

Unfortunately no, API Gateway does not provide access to the backing CloudFront distribution. To use WAF you would have to create a second distribution, which is inefficient but should functionally work.

这篇关于带有 AWS WAF 的 AWS API 网关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆