Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

開始する

最終更新 Markdown で表示Agent セットアップ

Cloudflare One Multi-Cloud Networking(旧 Magic Cloud Networking)(ベータ)を始めるには、Cloudflare がお客様に代わってクラウドプロバイダーと連携する権限を付与する必要があります。同じクラウドプロバイダーでも、プロバイダーアカウントが複数あることがあります。たとえば、2 つの異なる AWS アカウントに属する仮想プライベートクラウド(VPC)を Cloudflare に管理させたい場合です。

Cloudflare がクラウド環境へアクセスする認証情報を持つと、Multi-Cloud Networking はルートテーブルや仮想プライベートネットワークなどのクラウドリソースの検出を自動で開始します。検出したリソースは クラウドリソースカタログ に表示されます。

Amazon AWS を設定する

1. 連携を作成する

  1. Cloud integrations (beta) ページを開きます。

    Cloud integrations を開く ↗
  2. Add > AWS integration を選択します。

  3. 連携のわかりやすい名前を付けます。任意で説明も追加できます。

  4. Create integration を選択します。

  5. Authorize access を選択し、Cloudflare アカウントと Amazon AWS の接続を開始します。

2. IAM ポリシーを作成する

  1. AWS アカウントで カスタム IAM ポリシー を作成し、入力した名前を控えます。次に、JSON タブへ次の JSON コード を貼り付けます。
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ec2:AcceptTransitGatewayPeeringAttachment",
                "ec2:CreateTransitGatewayPeeringAttachment",
                "ec2:DeleteTransitGatewayPeeringAttachment",
                "ec2:DescribeRegions",
                "ec2:DescribeTransitGatewayPeeringAttachments",
                "ec2:RejectTransitGatewayPeeringAttachment",
                "ec2:GetManagedPrefixListEntries",
                "ec2:CreateManagedPrefixList",
                "ec2:ModifyManagedPrefixList",
                "ec2:DeleteManagedPrefixList",
                "ec2:CreateTransitGatewayPrefixListReference",
                "ec2:DeleteTransitGatewayPrefixListReference",
                "ec2:GetTransitGatewayPrefixListReferences",
                "ec2:ModifyTransitGatewayPrefixListReference"
            ],
            "Resource": "*"
        }
    ]
}

3. AWS アカウントへのアクセスを許可する

  1. 次の設定で AWS ロール を作成します。

    • Trusted entity type: Custom trust policy を選び、Cloudflare ダッシュボードが返すカスタム信頼ポリシーを貼り付けます。
    • Permissions: 前の手順で作成した IAM ポリシーに加え、次の AWS 管理ポリシーを追加します。
      • NetworkAdministrator
      • AmazonEC2ReadOnlyAccess
      • AmazonVPCReadOnlyAccess
      • IAMReadOnlyAccess
    • ARN: 作成したユーザーの ARN をコピーします。
  2. I authorize Cloudflare to access my AWS account. を選択します。

  3. Authorize を選択します。

Microsoft Azure を設定する

1. 連携を作成する

  1. Cloudflare ダッシュボードで Cloud integrations (beta) を開きます。

    Cloud integrations を開く ↗
  2. Add > Azure integration を選択します。

  3. 連携のわかりやすい名前を付けます。任意で説明も追加できます。

  4. Create integration を選択します。

  5. Authorize access を選択し、Cloudflare アカウントと Microsoft Azure の接続を開始します。

2. Azure アカウントへのアクセスを許可する

  1. Create service principal を選択します。Microsoft のログインページへリダイレクトされます。

  2. Azure の認証情報を入力します。アカウントに管理者権限がない場合は、管理者権限のあるアカウントへこのリンクを渡す必要があることがあります。

  3. 次の画面に、Cloudflare がアカウントへアクセスするために必要な権限が一覧されます。Accept を選択します。

  4. ロール割り当てを追加 します。この手順の目的は、ステップ 1 で登録したアプリに Azure Subscription へのアクセス権限を付与することです。

    • リンク先ドキュメントのステップ 3 で、Privileged administrator roles タブから Contributor ロールを選びます。
    • リンク先ドキュメントのステップ 4 で、メンバー選択時に mcn-provider-integrations-bot-prod を検索します。
  5. Provide account information で、Tenant IDSubscription ID を入力します。

  6. Verify account ownership で、Cloudflare ダッシュボードに表示されたタグを追加 します。

  7. I authorize Cloudflare to access my Azure account. を選択します。アカウントに管理者権限がない場合は、管理者権限のあるアカウントへこのリンクを渡す必要があることがあります。

  8. Authorize を選択します。

Google Cloud を設定する

1. 連携を作成する

  1. Cloudflare ダッシュボードで Cloud integrations (beta) を開きます。

    Cloud integrations を開く ↗
  2. Add > Google integration を選択します。

  3. 連携のわかりやすい名前を付けます。任意で説明も追加できます。

  4. Create integration を選択します。

  5. Authorize access を選択し、Cloudflare アカウントと Google Cloud の接続を開始します。

2. Google アカウントへのアクセスを許可する

  1. Google account > GCP Console > IAM & Admin > Service Accounts で、新しい GCP サービスアカウント を作成します。
  2. 新しいサービスアカウントに次のロールを付与します。
    • Compute Network Admin
    • Compute Viewer
  3. IAM & Admin > Service Accounts で、作成したサービスアカウントを選び、Permissions タブを開きます。
  4. このサービスアカウントをなりすませるよう、ボットアカウントへ Service Account Token Creator ロールを付与します。特定ロールの付与方法は Google のドキュメント を参照してください。
  5. service account email field に、GCP サービスアカウントの作成に使ったメールアカウントを入力します。
  6. Project ID field に、プロジェクトに関連する プロジェクト ID を入力します。
  7. プロジェクトのダッシュボードに表示された ラベルを追加 します。
  8. I authorize Cloudflare to access my GCP account. を選択します。アカウントに管理者権限がない場合は、管理者権限のあるアカウントへこのリンクを渡す必要があることがあります。
  9. Authorize を選択します。

クラウドプロバイダーを Multi-Cloud Networking に接続できました。Multi-Cloud Networking が見つけたクラウドリソースは クラウドリソースカタログ で確認できます。

次のステップ

役に立ちましたか?