7
5

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 権限とか、公開とか、お金とか 小ネタ

Last updated at Posted at 2014-06-13

AWS IAM account

AWSのベストプラクティスでは、IAMアカウントに付与する権限は必要なものに絞ることとなっていますが、その権限を調べるのが意外と大変という経験はありませんか? 私はあります。
下記のアマゾンお手製ツールをつかうと そのあたりが若干らくになるかも。
下記のサービスで使用するpolicy を生成してくれます。

  • IAM
  • S3 Bucket
  • SNS Topic
  • SQS Que

AWS S3 一部 backet 一般公開するには

下記で詳しく説明しています。
http://www.jppinto.com/2011/12/access-denied-to-file-amazon-s3-bucket/

  1. 上記policygen toolでS3 GetObject policy を作成しておきます
  2. AWS Web console S3 対象バケットを選択してproperties を開く
  3. "Add bucket policy" を選択
  4. 作成しおいいたpolicyをペースト 

例:

{
  "Id": "Policy1402621765000",
  "Statement": [
    {
      "Sid": "Stmt1402621761922",
      "Action": [
        "s3:GetObject"
      ],
      "Effect": "Allow",
      "Resource": "*",
      "Principal": {
        "AWS": [
          "*"
        ]
      }
    }
  ]
}

AWS コスト見積もり

 下記便利なページがあります

(English)http://calculator.s3.amazonaws.com/index.html
(日本語版)http://calculator.s3.amazonaws.com/index.html?lng=ja_JP#

7
5
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
7
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?