AWS S 3のウェブサイトを主催すること
AWSは大きなクラウド・プロバイダの一つだ.どちらのサービスでもAWSを想像できます.
S 3はストレージサービスの略で、大量のデータを格納することができます.
このポストでは、S 3でどのようにウェブサイトを主催するかについて見ます.☁️
AWSに正常にログインした後、ストレージセクションの下でS 3サービスを見つけることができました.

それはS 3 Managementコンソールにあなたをリダイレクトします.そして、それは私のケースでは、私にはまだS 3バケットがまだないと私に示します.

次のウィンドウが表示されます.
バケット名が一意でなければならないことに注意してください.

一旦それがされるならば、我々はS 3パネルで我々の最近作成されたバケツを見ます.

私たちのバケツは私たちの名前をクリックして準備ができています.まずは、ウェブサイトのファイル依存関係をアップロードします.


私のファイルが表示されます.

この時点で私たちのファイルが保存され、我々は我々のバケットを設定する必要があり、それが静的なウェブサイトのホスティングに使用されることを示す.

無効にしてください.

AWSが我々のバケツの終点を我々に話している点に注意してください.
サービスが実行中です.

デフォルトのバケットはパブリックアクセスをブロックします.


変更を確認します.

明らかに、それはすべてです、しかし、アクセスしようとするとき、終点を通ってください.

なぜなら、我々のバケットの追加の設定が必要です.S 3バケットポリシーは、アクションと我々のファイルへのアクセスを制御します.

AWSポリシー生成ツールを使用します.

次のページが表示されます.


arnフィールドを埋めるために、前の「バケット方針」ページをチェックする必要があります.

最後に、ポリシーの詳細は次のとおりです.


ポリシーJSON文書が表示されます.

ここで重要なのは、リソース値の末尾に'*'文字を追加する必要があります.

今、それは取る準備ができています!🚀
当社のウェブサイトは準備ができて公開されます.私たちはブラウザにエンドポイントを書くことによってアクセスできます.


読んでくれてありがとう!😺
S 3はストレージサービスの略で、大量のデータを格納することができます.
このポストでは、S 3でどのようにウェブサイトを主催するかについて見ます.☁️
AWSで
AWSに正常にログインした後、ストレージセクションの下でS 3サービスを見つけることができました.

それはS 3 Managementコンソールにあなたをリダイレクトします.そして、それは私のケースでは、私にはまだS 3バケットがまだないと私に示します.

次のウィンドウが表示されます.
バケット名が一意でなければならないことに注意してください.

一旦それがされるならば、我々はS 3パネルで我々の最近作成されたバケツを見ます.

ウェブサイトファイルのアップロード
私たちのバケツは私たちの名前をクリックして準備ができています.まずは、ウェブサイトのファイル依存関係をアップロードします.


私のファイルが表示されます.

S 3バケットの設定
この時点で私たちのファイルが保存され、我々は我々のバケットを設定する必要があり、それが静的なウェブサイトのホスティングに使用されることを示す.
Click on Properties tab.

無効にしてください.
Click on Static web hosting option.

AWSが我々のバケツの終点を我々に話している点に注意してください.
Select the 'Use this bucket to host a website' radio button.
Enter the index file name.
Save
サービスが実行中です.

ポリシーの設定
デフォルトのバケットはパブリックアクセスをブロックします.
Click on edit.

Uncheck block all public access.
Save

変更を確認します.

それはすべてではない!S 3バケットポリシー
明らかに、それはすべてです、しかし、アクセスしようとするとき、終点を通ってください.

なぜなら、我々のバケットの追加の設定が必要です.S 3バケットポリシーは、アクションと我々のファイルへのアクセスを制御します.

AWSポリシー生成ツールを使用します.

次のページが表示されます.
Select S3 Bucket Policy.

Select Get Object.

arnフィールドを埋めるために、前の「バケット方針」ページをチェックする必要があります.

最後に、ポリシーの詳細は次のとおりです.

Click on Generate Policy

ポリシーJSON文書が表示されます.

{
"Id": "Policy1598507824707",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1598507726767",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::rsh-awsbucket",
"Principal": "*"
}
]
}
すべてのテキストをコピーし、バケットポリシーエディタに貼り付けます.ここで重要なのは、リソース値の末尾に'*'文字を追加する必要があります.

今、それは取る準備ができています!🚀
当社のウェブサイトは準備ができて公開されます.私たちはブラウザにエンドポイントを書くことによってアクセスできます.


読んでくれてありがとう!😺
Reference
この問題について(AWS S 3のウェブサイトを主催すること), 我々は、より多くの情報をここで見つけました https://dev.to/rsh456/hosting-a-website-in-aws-s3-11jテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol