> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/kuraudosukyan/connect-your-cloud/aws/connect-aws-organization-to-aikido.md).

# AWS Organizationsを接続する

{% hint style="info" %}
この機能は以下の **Pro** と **Advanced** プランです。 **お問い合わせ** 詳細はチャットでお問い合わせください。
{% endhint %}

AWS 組織に多数のメンバーアカウントがある場合、接続できるのは [管理アカウント](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#management-account) だけで、残りの AWS アカウントは Aikido が自動的に検出して接続します。

## なぜ AWS Organization を接続するのか？

組織レベルでオンボーディングすると、次のメリットがあります：

* **より迅速なセットアップ**：接続する必要があるのは管理アカウントだけです。
* **アカウントの自動検出**：今後作成するアカウントも含め、新しいメンバーアカウントが自動的に Aikido に追加されます。

## 前提条件

* 現在、Pro、Advanced、または Enterprise プランをご利用です。
* AWS 組織の AWS 管理アカウントにアクセスできます。
* あなたは [AWS CloudFormation StackSets の Trusted Access を有効にしています](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-activate-trusted-access.html).

## はじめに

AWS 組織を接続するには、「Full AWS Organizatio&#x6E;**'** オプションを [AWS 接続ウィザード](https://app.aikido.dev/clouds/add/aws)で選択してください。以下を提供する必要があります：

* **組織 ID**：'o-wma21z4agr' のような形式です。
* **ルート ID** または 1 つ以上の **組織単位（OU）ID**をカンマ区切りで指定します。このオプションでは、組織全体（ルート ID を指定）またはその一部（たとえば、本番およびステージングの OU のみを接続したい場合など）を接続できます。
* **除外するアカウント ID**：必要に応じて、Aikido に追加しない特定の AWS アカウントを除外できます。

この情報は [AWS Organization ページ](https://us-east-1.console.aws.amazon.com/organizations/v2/home/accounts).

<figure><img src="/files/161cca3dbb648dc7872b2e5fdbc67acaeef85ef8" alt=""><figcaption></figcaption></figure>

で取得できます。セットアップが完了すると、数分以内にすべての AWS アカウントが Aikido に接続されているのが表示されます。

### クラウドの目的の判定

AWS アカウントの目的／環境は、親 OU の名前に基づいて自動的に判定されます。Aikido は「production」「staging」「uat」などの語を探し、それに応じてクラウドの目的を設定します。一致するものが見つからない場合、目的は「mixed」になります。「Configure」ボタンを使って、各クラウド接続の目的を手動で更新できます。

### メンバーアカウント向け ECR/EBS スキャン

Aikido は AWS メンバーアカウントに対して、ECR スキャンおよび／または EBS（EC2）スキャンを自動的に設定できます。これらを有効にすると、CloudFormation StackSet に追加の IAM リソース（各機能ごとに IAM ロールとカスタムポリシー）がデプロイされます。AWS アカウントで CloudFormation ページを開く前に、これらのオプションを必要に応じて設定しておいてください。

まだ AWS 組織を接続していない場合、初回セットアップ時にこれらを有効にするオプションがあります。「Enable EBS Scanning」オプションが表示されない場合は、お問い合わせください。

#### オンボーディング後の組織詳細の編集

組織固有の値（例：除外する AWS アカウント）を更新するには **、** AWS 組織のオンボーディング後に、次の手順を実行する必要があります：

1. CloudFormation スタックのパラメータを更新します。
   1. を開き `aikido-security-readonly-org` CloudFormation スタック。
   2. 「Update stack」→「Make a direct update」。
   3. デフォルトの「Use existing template」オプションを選択します。
   4. 必要に応じてパラメータを更新します。
   5. 次のページで、IAM リソースの作成を承認します。
   6. 「Submit」を押します。変更のデプロイには数分かかる場合があります。
2. Aikido で「Clouds」に移動し、AWS 管理アカウントに対応するクラウドの「Configure」を選択して、設定を更新します。

<figure><img src="/files/d4667652702fbcd988206fddde11715cd39a17f7" alt=""><figcaption></figcaption></figure>

3. Aikido で管理アカウントのスキャンを実行します。これにより、新しい AWS アカウントが検出されます。AWS アカウントを除外した（または OU を削除した）場合は、Aikido から該当するクラウドを削除してください。

## よくある質問

1. **安全ですか？**

はい。AWS Organization の接続は、個別の AWS アカウントを接続する際に使用するものと同じ構成に基づいており、外部 ID を必要とする最小権限の IAM ロールを使用します。実際には同じテンプレートで、AWS アカウントごとに CloudFormation StackSets を使ってデプロイしているだけです。

2. **AWS アカウントを組織に追加すると、Aikido に表示されますか？**

はい。Aikido は管理アカウントをスキャンするたびに AWS 組織をスキャンし、新しい AWS アカウントを自動的に接続します。このプロセスは、AWS CloudFormation StackSets によって支えられており、必要な IAM ロールとポリシーを AWS アカウントに自動作成します。

3. **AWS アカウントを組織に追加したのに、Aikido に表示されませんでした。**

Aikido が AWS 管理アカウントをスキャンしても（手動でスキャンできます）、新しいアカウントがまだ表示されない場合、プランのクラウドアカウント上限に達している可能性があります。上限を増やすにはお問い合わせください。

4. **AWS アカウントを停止するか AWS 組織から削除すると、どうなりますか？**

Aikido は、そのアカウントがもはや有効でない、または組織の一部ではないことを検出し、対応する接続を「到達不可」とマークします。これは [クラウドページ](https://app.aikido.dev/clouds).

5. **必要な AWS リソースのセットアップに Terraform を使えますか？**

はい。 [当社の Terraform モジュール](https://github.com/AikidoSec/aws-native-terraform-module)を使用できます。主要バリアントは AWS CloudFormation StackSet を作成します。StackSets が使えない場合は、 [IAM サブモジュール](https://github.com/AikidoSec/aws-native-terraform-module/tree/main/modules/iam-roles) を使って各 AWS アカウントにロールを作成することを検討してください。なお、アプリ内の手順（CloudFormation 部分を除く）は引き続き実行する必要があります。


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/kuraudosukyan/connect-your-cloud/aws/connect-aws-organization-to-aikido.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
