> 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 Organization を接続

{% hint style="info" %}
この機能は次のプランでのみ利用できます **Pro** および **Advanced** プランです。 **お問い合わせ** 詳細はチャットでお問い合わせください。
{% endhint %}

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

## AWS 組織を接続する理由

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

* **セットアップの高速化**：接続する必要があるのは管理アカウントだけです。
* **アカウントの自動検出**：新しいメンバーアカウントは自動的に 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 を指定）またはその一部（たとえば、production と staging の OU のみを接続したい場合など）を接続できます。
* **除外するアカウント ID**：必要に応じて、特定の AWS アカウントを Aikido への追加対象から除外できます。

この情報は、次の場所から取得できます： [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 組織の接続は、個々の 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 は、そのアカウントがもはやアクティブでない、または組織の一部でないことを検出し、対応する接続を「not reachable」としてマークします。これは [クラウド一覧ページ](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.
