1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

S3で画像をUpload&表示

Posted at

色んなところに情報は出ていると思いますが、2023年7月時点で久しぶりにS3操作してみたのでその記録です。
S3のバケットを作成して、画像あげてアクセス権を修正するというものですが意外と面倒でした。

S3を開き、バケットを作成

S3-Management-Console.png

諸々設定

  • ACLは有効に(画面は無効だが)
  • パブリックアクセスをすべてブロックのチェックを外す(どこからでもアクセス可能にするため)
  • 「現在の設定より・・・」はチェックを入れる
    S3-bucket (2).png

バケットの設定は完了

S3-Management-Console (1).png

バケットにファイルをアップロード

takamibucket0712-S3-bucket.png
↓↓↓↓↓↓↓↓↓↓
S3-Management-Console (2).png

アクセスコントロールは以下のように設定

「私は、これらの変更が・・・」のチェックも入れて変更の保存
takamibucket0712-S3-bucket (2).png

設定変更したS3画像のオブジェクトURLから画像を開く

takamibucket0712-S3-bucket (1).png

takamibucket0712-S3-bucket (3).png

image.png

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?