LoginSignup
0
0

More than 5 years have passed since last update.

3sで、公開用のイメージストアを作ろうと思ったとき、公開方法で詰まったのでメモ

Posted at

イメージストアをawsのs3を使って作ろうと思ったとき、方法がわからなくって、ググりまくった。
すると、awsのあるページにたどり着いたので、ここに方法をメモをしておく

方法

バケットのプロパティ - 「アクセス許可」のタブの中から、「セキュリティポリシーを作成」
を選択する。

編集画面が出てくるので、その中に、

{
  "Version":"2012-10-17",
  "Statement": [{
    "Sid": "Allow Public Access to All Objects",
    "Effect": "Allow",
    "Principal": "*",
    "Action": "s3:GetObject",
    "Resource": "arn:aws:s3:::example.com/*"
  }
 ]
}

をコピペして、保存する。
「Resource」の「example.com」は、適宜作成したバケット名に書き換えてほしい。

これで、パケット名を使って、公開用のストアができた。

参考サイト

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0