[英]How to set up static site in aws using S3 - is there a visual guide?
There are a bunch of tutorials that go over:有一堆教程可以参考:
But they all seem incomplete and there seem to be a large number of gotchas to know.但它们似乎都不完整,而且似乎有很多问题需要了解。
Is there a set of screenshots to help reveal some of the mysteries to those of us who love to learn visually ?是否有一组屏幕截图可以帮助我们这些喜欢视觉学习的人揭示一些奥秘?
First create the bucket.首先创建存储桶。
The name will need to be unique across aws so you may easily find your first choices is already taken.该名称在 aws 中必须是唯一的,因此您可能很容易发现您的第一个选择已经被采用。
For (a different) example I was able to use my initials as a prefix.对于(不同的)示例,我可以使用我的首字母作为前缀。
Configure options (below) - you can leave all these blank to get started !配置选项(如下) - 您可以将所有这些留空以开始使用!
Then find the 'Static Website Hosting' section:然后找到“静态网站托管”部分:
And allow public access:并允许公共访问:
ie Unchecking it (I haven't tested individual boxes)即取消选中它(我还没有测试过单个盒子)
It's the first option for 'use this bucket to host a website'.这是“使用此存储桶托管网站”的第一个选项。 Don't be confused by the Redirect requests, you'll deal with an a DNS alias for a redirect in Route53
不要被重定向请求所迷惑,您将在 Route53 中处理重定向的 DNS 别名
OK so now for Route53 which was harder to find good examples.好的,现在对于 Route53 来说,很难找到好的例子。
Note that the names are generic请注意,名称是通用的
The key parts are:关键部分是:
For verification:验证:
One more - here's the policy you need to add.还有一个 - 这是您需要添加的策略。 A critical piece:
一个关键的部分:
One last gotcha - once you have the site working, when you go to update future content to the bucket you will see:最后一个问题 - 一旦您的网站正常工作,当您将未来的内容更新到存储桶时,您将看到:
Know that you don't need to change that.知道你不需要改变它。 You can leave it as the default and the content will be available on the site anyway:
您可以将其保留为默认值,无论如何,该内容将在网站上可用:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.