14
9

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 5 years have passed since last update.

AWSの注意点:S3編

Posted at

いろいろ経験談をためていく予定です。

クロスアカウントのお話

  • アカウントAからBのS3にアップしたら、、、

S3にクロスアカウント設定して、AのEC2からBのS3にファイルをアップ。
で、BのS3からBのEC2上にそのファイルを落とそうとしたら。。。

A client error (Forbidden) occurred when calling the HeadObject operation: Forbidden

(;・∀・) < まじかw

いろいろ調べた結果、アップするときは下のオプションがいるようです。

--acl bucket-owner-full-control

#他にもACLオプションがあるので、こちら参照
https://docs.aws.amazon.com/ja_jp/ElasticMapReduce/latest/DeveloperGuide/emr-s3-acls.html

ちなみに、IAMロールで回避は出来ないみたいです。

14
9
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
14
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?