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

Cloudinaryの.wellknownについて

0
Posted at

Cloudinaryの.wellknownについてのメモ書きです。

概要

非公開S3バケットをCloudinaryで使用するには、.wellknownファイルとバケットポリシーの2つの設定が必要。

.wellknownファイル

役割: Cloudinaryがバケットにアクセス可能であることを初期検証するファイル

配置場所:
.wellknown/cloudinary/{cloud_name}

内容: 空でOK

cloud_nameとは

Cloudinaryアカウントの一意の識別子。Settings > Account Settings > Product Environments で確認可能。

バケットポリシー設定

Cloudinaryに読み取りアクセス権限を付与:

{
  "Version": "2012-10-17",
  "Id": "AWSConsole-AccessLogs-Policy-BUCKETNAME-cloudinary",
  "Statement": [
    {
      "Sid": "AWSConsoleStmt-BUCKETNAME-cloudinary",
       "Effect": "Allow",
       "Principal": {
         "AWS": "232482882421"
      },
       "Action": [
          "s3:GetObject"
      ],
      "Resource": "arn:aws:s3:::BUCKETNAME/*"
    }
  ]
}

※KMS暗号化時KMSキーポリシーの追加も必要

参考URL

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?