是否可以使用 CloudFront 通过 SSL 在 Amazon S3 上托管 AngularJS 应用程序?

Is it possible to host an AngularJS app on Amazon S3 using CloudFront over SSL?

我不知道允许您在 CloudFront 上使用 SSL 执行此操作的解决方案只是因为它无法通过 SSL 从 S3 中提取。我错过了什么吗?

是的。您可以要求通过 HTTPS 将您的 CloudFront 内容提供给您的查看器,并且 单独地 让 CloudFront 通过 HTTP HTTPS 从您的来源提取内容。参见 Using an HTTPS Connection to Access Your Objects

该文件指出:

For web distributions, you can use HTTPS requests to ensure that your objects are encrypted when CloudFront serves them to viewers and, optionally, when CloudFront gets the objects from your origin.

查看器 <== CloudFront 是一个连接,而 CloudFront <== Origin 是另一个单独的连接。

端到端是否需要 SSL 取决于您,但没有像您描述的那样的限制。