Cloudfront 使用总结 作者: lovingyu_er 时间: 2021-01-19 14:08:00 分类: 编程语言,PHP,朝花夕拾 ###1. 区域限制信息: ``` The Amazon CloudFront distribution is configured to block access from your country. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation. ``` 解决方案:你的分配节点存在地域位置的设置问题,请打开自己的分配ID,按照下图的大概流程就知道怎么回事了。   ###2. Cloudfront源是S3,s3 的权限设置问题: 采用cloudfront的源权限设置,对于源进行权限更改,会自动在s3的权限界面的策略那里,生成相应的权限:  点击编辑按钮:  看图片中的问题提示。 修改好后,点击“是,修改”,再看s3 的权限界面,就会生成一大串的json字符串:  这样就完成对cloudfront 访问s3的权限,而又保证的s3的安全。 标签: Cloudfront