amazon-s3 - 为 aws 公共 s3 存储桶创建 DNS URL
问题描述
我想为 aws s3 存储桶提供自定义的 DNS URL。我可以作为 URL 访问我的 s3 存储桶的文件,https://<s3-bucket-name>.s3-ap-southeast-1.amazonaws.com/folder-name/file.png
但我想将 URL 提供为https://abc.example.xyz
. 不知道我该怎么做。
尝试过的步骤 - 我尝试使用 Route 53 并将其映射abc.example.xyz
,<s3-bucket-name>.s3-ap-southeast-1.amazonaws.com
但没有奏效。
这个桶的目的是存储像jpg和pdf这样的文件,可以通过URL访问。
解决方案
存储桶名称必须与自定义 DNS 的名称相同,然后 CNAME 在 AWS 路由 53 中运行良好。我创建了一个具有名称的存储桶,abc.example.xyz
然后将 CNAMEabc.example.xyz
与abc.example.xyz.s3-ap-southeast-1.amazonaws.com
. 它工作正常。
推荐阅读
- java - 如何部署应用程序 [寻求建议]
- python - 在Python中的字符串列表中查找带有表达式的子字符串
- c - 与取消引用 argv 混淆
- node.js - 是否可以动态使用路由部分来调用护照策略?
- javascript - 无论如何要恢复从 chrome 开发工具中删除的片段?
- postgresql - Postgresql:[42883] 错误:运算符不存在:文本 || 整数[]
- reactjs - 多个 Thunk 调度是同步执行还是异步执行?
- java - 关于级联,hibernate 中的 save() 和 persists() 方法有什么区别?
- reactjs - 将 DefaultAction 类型添加到我的 redux RootAction
- solr - 将日期类型 (solr.TrieDateField) 复制到字符串类型 (solr.TextField) 时,Solr CopyField 行为奇怪