> For the complete documentation index, see [llms.txt](https://docs.flosum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flosum.com/global-settings/global-settings-docs-ja/huan-jing/sutorji/sutorjino-aws-s3-bakettono.md).

# ストレージ用の AWS S3 バケットの追加

{% hint style="success" %}

#### 必要なユーザー認証情報

\[**Flosumユーザー**] - **システム管理者** 役割
{% endhint %}

## ![](https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FSxcnKlaJKPzDqONWoDNv%2FSummary2-Small-Icon.svg?alt=media\&token=5e3253d0-a069-4ba5-9c06-83c70bd0b21d)概要

デフォルトでは、Flosum Backup & Archive はデータを Flosum が管理する AWS S3 バケットに保存します。ただし、顧客は任意で自身が管理する AWS S3 バケットをデータ保存に使用できます。本ガイドでは、Flosum テナントを顧客管理の AWS S3 バケットを使用するように構成する方法を説明します。安全でコンプライアンスに準拠したデータ操作を確保するために、次のセクションに記載された IAM ポリシーとセキュリティのベストプラクティスに従ってください。

* [#aws-s3-required-apis-and-policies](#aws-s3-required-apis-and-policies "mention")

## AWS バケットの追加

{% stepper %}
{% step %}

### Global Settings にアクセス

1. 任意の **Flosum Cloud App**で、 **アプリスイッチャー** アイコンを左側のサイドバーメニュー上部でクリックします。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fgh5FcQCnErKAjJ7isiuB%2FGS-Access-01.png?alt=media&amp;token=ddf01506-f133-4e49-825a-76a2a237e3a8" alt="" width="563"><figcaption></figcaption></figure></div>
2. クリック **グローバル設定**.&#x20;

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fx5vntzgpLuT50fMTzwT9%2FGS-Access-02.png?alt=media&amp;token=f67a125f-5087-47c2-9bc6-9393c3d2b7a5" alt="" width="563"><figcaption></figcaption></figure></div>
3. その **グローバル設定** アプリは新しいタブで開きます。

{% hint style="info" %}
グローバル設定には、Flosum Cloud Apps のログインURLから直接ログインしてアクセスすることもできます。ログイン手順については、以下の記事を参照してください。

* [グローバル設定にログインする](/global-settings/global-settings-docs-ja/hajimeni/gurbaruniroguinsuru.md)
  {% endhint %}
  {% endstep %}

{% step %}

### ストレージを作成

1. をクリックします **ストレージ** サイドバーメニューから。
2. をクリックします **ストレージを作成**.&#x20;

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FMclwFGa8iO8mLhNoJsJI%2FGSAddingAwsBucket-Add-01.png?alt=media&amp;token=dff41b23-fac6-4b95-9c0d-0a40669e57af" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### ストレージタイプを選択

1. ストレージのわかりやすい名前を次に入力してください： **名前** テキストボックス。
2. をクリックします **ストレージタイプ** ドロップダウン。&#x20;

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FiQWVIflUFQmKtipMBko6%2FGSAddingAwsBucket-Add-02.png?alt=media&amp;token=27be8afc-dec7-4673-b3db-3be56d7512ef" alt="" width="375"><figcaption></figcaption></figure></div>
3. 選択 **AWS S3**.&#x20;

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fv1S6UbatcfhwrFpFzj30%2FGSAddingAwsBucket-Add-03.png?alt=media&amp;token=4d2c4ae2-3e16-4a4f-b7f2-0c113f774e86" alt="" width="375"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### AWS 認証情報の提供

AWS S3 バケットに接続するために次の項目を入力してください：

{% hint style="info" %}
AWS 内の項目の場所は表に示されているものとは異なる場合があります。適切な項目を見つける際の参考として表を使用してください。
{% endhint %}

<table><thead><tr><th width="199.99993896484375">項目</th><th>AWS の項目</th></tr></thead><tbody><tr><td><strong>リージョン</strong></td><td>Amazon S3 > バケット > <strong>AWS リージョン</strong> （次のみを含めてください： <strong>リージョン</strong> ではなく <strong>リージョン名</strong>）。たとえば、ストレージが <strong>米国東部（バージニア北部） us-east-1</strong>にある場合は、 <strong><code>us-east-1</code></strong>.)</td></tr><tr><td><strong>バケット名</strong></td><td>Amazon S3 > バケット > <strong>名前</strong></td></tr><tr><td><strong>アクセスキー ID</strong></td><td>トークンの <strong>アクセスキー ID</strong> はバケット作成時に生成されました。 </td></tr><tr><td><strong>シークレットアクセスキー</strong></td><td>トークンの <strong>シークレットアクセスキー</strong> はバケット作成時に生成されました。</td></tr></tbody></table>

<div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FGwRD6qKNkprThhqTdtb9%2FGSAddingAwsBucket-Add-04.png?alt=media&amp;token=fcc9d6f7-023f-48af-854e-2f6047f0f10a" alt="" width="375"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### AWS S3 バケットの作成

1. をクリックします **作成** ボタンを押して AWS S3 バケットを追加します。&#x20;

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FnfaIhG4LPQNe0MwjpcYM%2FGSAddingAwsBucket-Add-05.png?alt=media&amp;token=3d5a9c0e-ea3b-4306-93f0-6daf47f3b0e2" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="info" %}
ストレージ追加時にエラーが発生した場合は、AWS に正しいポリシーが設定されていることを確認してください。Flosum Backup & Archive がアクセスするために必要な API とポリシーについては次のセクションを参照してください。

* [#aws-s3-required-apis-and-policies](#aws-s3-required-apis-and-policies "mention")
  {% endhint %}

2. 正常に追加されると、AWS S3 バケットが以下の一覧に表示されます： **ストレージ**.&#x20;

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FD7UZe0Q0oeEZ2wTWcqWT%2FGSAddingAwsBucket-Add-06.png?alt=media&amp;token=ea6186d3-984c-4dec-9283-05b11b244a2e" alt=""><figcaption></figcaption></figure></div>

{% endstep %}
{% endstepper %}

***

## AWS S3 必須 API とポリシー

以下の S3 API がバックアップおよび復元操作で使用されます：

{% hint style="info" %}

#### セキュリティのベストプラクティス

* 必要な API のみに最小権限を付与する
* 特定のバケットと KMS キーへのアクセスを制限する
* 次を行ってください **しないでください** バケット自体を変更または削除する権限を付与しないでください
* 過度に広範なワイルドカードアクセスは避けてください
* KMS アクションは次に限定するべきです： `GenerateDataKey` と `Decrypt`
  {% endhint %}

| API カテゴリ             | 操作                                                                                                                                                                                              |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| コア オブジェクト操作          | <p><code>s3:PutObject</code> – レコードと添付ファイルをアップロード<br><code>s3:GetObject</code> – オブジェクトをダウンロード<br><code>s3:DeleteObject</code> – 古いバックアップを削除<br><code>s3:ListBucket</code> – ディレクトリの内容を一覧表示</p> |
| バケット管理               | `s3:GetBucketLocation` – 操作のためのリージョンを特定                                                                                                                                                         |
| KMS 操作（暗号化されたバケットのみ） | <p><code>kms:GenerateDataKey</code> – 暗号化されたアップロード用<br><code>kms:Decrypt</code> – 復元時にオブジェクトを復号するため</p>                                                                                         |

これらの権限は以下を行うために必要です：

1. Salesforce レコードのバックアップを CSV として保存する
2. ファイル/添付ファイルをバイナリオブジェクトとして保存する
3. MySQL と参照整合性を維持する
4. バックアップファイルのクリーンアップを実行する
5. 復元操作を有効にする
6. KMS ベースの暗号化/復号処理を扱う

### 推奨される IAM ポリシードキュメント

{% hint style="warning" %}
次の `${BucketName}` を S3 バケットの名前に置き換えてください。
{% endhint %}

{% code title="推奨 IAM ポリシー（JSON）" %}

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "FlosumBackupRestoreOperations",
      "Effect": "Allow",
      "Action": [
        "s3:PutObject",
        "s3:GetObject",
        "s3:DeleteObject",
        "s3:ListBucket",
        "s3:GetBucketLocation"
      ],
      "Resource": [
	      "arn:aws:s3:::${BucketName}", 
	      "arn:aws:s3:::${BucketName}/*"
	    ]
    },
    {
      "Sid": "FlosumKMSOperations",
      "Effect": "Allow",
      "Action": [
		    "kms:GenerateDataKey", 
		    "kms:Decrypt"
		  ],
      "Resource": [
        "arn:aws:kms:us-east-2:148761667479:key/bdcb7f8c-afe1-4973-8714-08ea2355ea03"
      ]
    }
  ]
}
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flosum.com/global-settings/global-settings-docs-ja/huan-jing/sutorji/sutorjino-aws-s3-bakettono.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
