amazon-web-services - 通过 CloudFront 和 S3 存储桶静态 Web 托管提供私有动态内容
问题描述
目前我想让我的 SPA 与 S3 存储桶托管一起从 CloudFront 提供服务,同时维护我的 ECS 后端服务器的隐私,该服务器位于私有子网中,内部 ALB 仅侦听来自 S3 存储桶的 API 调用,但是,我明白S3 存储桶不可能从我的后端提供动态内容,因为它是静态的,我是否可以使用 CloudFront 来提供我的后端 API,同时通过设置其行为来保持我的 ALB 为私有?
解决方案
I have found the answer that according to the documentation of CloudFront, every CloudFront origin must be public and since it has no access to my VPC, setting a "private ALB" as an origin is impossible.
推荐阅读
- javascript - 在 Google Script 上优化迭代脚本
- azure-blob-storage - 如何使用 Azure 数据工厂将数据库查询的结果拆分为多个 blob 文件以进行雪花提取?
- python - Python:如何使用列中的列表进行分组
- c# - Azure AD B2C + Azure 移动应用程序 - MobileServiceInvalidOperationException
- c++ - 为什么在这段代码片段中复制构造函数被调用了两次?
- here-api - 带有 Trucknopttile 覆盖的路由地图图像 API?(休息)
- c# - 如何在代码文档中正确指定函数可能在 C# 上返回 null?
- activemq - 使用 AMQSource 的 Flink 作业不会生成输出
- c# - 如何从另一个对象中的脚本激活对象上的脚本?
- javascript - Ajax 请求获取错误的 url