amazon-web-services - 具有静态 IP 的 AWS API 网关

标签 amazon-web-services amazon-cloudfront aws-api-gateway

当您使用网关创建 API 并映射自定义域时,
AWS API Gateway 进入云端分发

来源:http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html

For every API you create, API Gateway sets up an Amazon CloudFront distribution for the API. Requests with the default API URL are routed through the corresponding CloudFront distribution. Similarly, for every custom domain name, API Gateway sets up a CloudFront distribution. An API request with the custom domain name is routed through the custom domain name's CloudFront distribution.



但是,当 AWS 更新 ip ranges 时,云端 IP 可能会发生变化。 .

作为 API 的用户,我如何将静态 IP 绑定(bind)到映射到网关的自定义域,以便在 AWS 更新 IP 范围时无需更新防火墙导出设置?

最佳答案

无法将静态 IP 附加到 API 网关。但是,AWS 发布了 IP ranges used by CloudFront可用于将防火墙导出设置列入白名单。

由于这些 IP 范围也可以更改,因此建议使用 this 自动检查更改。 URL 并相应地更新规则。

关于amazon-web-services - 具有静态 IP 的 AWS API 网关,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46183202/

相关文章:

amazon-web-services - 如何解决 : 'Unable to resolve AWS account to use. It must be either configured when you define your CDK or through the environment'

php - 如何调试 AWS Cloudfront 签名 URL 访问被拒绝?

amazon-cloudfront - 自定义源根的 Cloudfront 失效

swagger - 部署后,AWS API Gateway 所需的 api key 未设置为 'true'

mysql - 尝试增加 RDS MySQL 实例上的存储时出错

amazon-web-services - 如何将文件上传到 lambda 函数或 API 网关?

aws-lambda - Cloudformation - 'AWS_PROXY' 目前仅支持 Lambda 函数

amazon-web-services - 如何找到api网关阶段的arn?

AWS EC2 机器上的 Solrcloud 配置

ruby-on-rails - 如何限制 AWS CloudFront 使其仅处理来 self 域中单个目录的请求?