【hexo】使用 AWS s3 作为 hexo 图库

Posted by 西维蜀黍 on 2019-11-10, Last Modified on 2021-09-21

AWS s3

AWS 的对象存储服务。

CloudFront Distribution

CloudFront Distribution 是AWS的内容分发(CDN)使得全球各地都能以最快的速度访问到AWS最近的节点(对于中国,最近的是东京,经测,也已经足够快),并且可绑定或者生产SSL证书。

AWS s3cmd

Install

$ brew install s3cmd

Config

Generate an access key from https://console.aws.amazon.com/iam/home?region=ap-northeast-1#/security_credentials, and set it when executing:

$ s3cmd --configure

So that we can locally manage all images used in our blogs, i.e., upload or download.

s3cmd get --recursive s3://zzx6ssadcq/img/assets/

Reference