Cloudflare One Multi-Cloud Networking(旧 Magic Cloud Networking)(ベータ)を始めるには、Cloudflare がお客様に代わってクラウドプロバイダーと連携する権限を付与する必要があります。同じクラウドプロバイダーでも、プロバイダーアカウントが複数あることがあります。たとえば、2 つの異なる AWS アカウントに属する仮想プライベートクラウド(VPC)を Cloudflare に管理させたい場合です。
Cloudflare がクラウド環境へアクセスする認証情報を持つと、Multi-Cloud Networking はルートテーブルや仮想プライベートネットワークなどのクラウドリソースの検出を自動で開始します。検出したリソースは クラウドリソースカタログ に表示されます。
-
Cloud integrations (beta) ページを開きます。
Cloud integrations を開く ↗ -
Add > AWS integration を選択します。
-
連携のわかりやすい名前を付けます。任意で説明も追加できます。
-
Create integration を選択します。
-
Authorize access を選択し、Cloudflare アカウントと Amazon AWS の接続を開始します。
- 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": "*"
}
]
}-
次の設定で AWS ロール ↗ を作成します。
- Trusted entity type: Custom trust policy を選び、Cloudflare ダッシュボードが返すカスタム信頼ポリシーを貼り付けます。
- Permissions: 前の手順で作成した IAM ポリシーに加え、次の AWS 管理ポリシーを追加します。
NetworkAdministratorAmazonEC2ReadOnlyAccessAmazonVPCReadOnlyAccessIAMReadOnlyAccess
- ARN: 作成したユーザーの ARN をコピーします。
-
I authorize Cloudflare to access my AWS account. を選択します。
-
Authorize を選択します。
-
Cloudflare ダッシュボードで Cloud integrations (beta) を開きます。
Cloud integrations を開く ↗ -
Add > Azure integration を選択します。
-
連携のわかりやすい名前を付けます。任意で説明も追加できます。
-
Create integration を選択します。
-
Authorize access を選択し、Cloudflare アカウントと Microsoft Azure の接続を開始します。
-
Create service principal を選択します。Microsoft のログインページへリダイレクトされます。
-
Azure の認証情報を入力します。アカウントに管理者権限がない場合は、管理者権限のあるアカウントへこのリンクを渡す必要があることがあります。
-
次の画面に、Cloudflare がアカウントへアクセスするために必要な権限が一覧されます。Accept を選択します。
-
ロール割り当てを追加 ↗ します。この手順の目的は、ステップ 1 で登録したアプリに Azure Subscription へのアクセス権限を付与することです。
- リンク先ドキュメントのステップ 3 で、Privileged administrator roles タブから Contributor ロールを選びます。
- リンク先ドキュメントのステップ 4 で、メンバー選択時に
mcn-provider-integrations-bot-prodを検索します。
-
Provide account information で、Tenant ID と Subscription ID を入力します。
-
Verify account ownership で、Cloudflare ダッシュボードに表示されたタグを追加 ↗ します。
-
I authorize Cloudflare to access my Azure account. を選択します。アカウントに管理者権限がない場合は、管理者権限のあるアカウントへこのリンクを渡す必要があることがあります。
-
Authorize を選択します。
-
Cloudflare ダッシュボードで Cloud integrations (beta) を開きます。
Cloud integrations を開く ↗ -
Add > Google integration を選択します。
-
連携のわかりやすい名前を付けます。任意で説明も追加できます。
-
Create integration を選択します。
-
Authorize access を選択し、Cloudflare アカウントと Google Cloud の接続を開始します。
- Google account > GCP Console > IAM & Admin > Service Accounts で、新しい GCP サービスアカウント ↗ を作成します。
- 新しいサービスアカウントに次のロールを付与します。
Compute Network AdminCompute Viewer
- IAM & Admin > Service Accounts で、作成したサービスアカウントを選び、Permissions タブを開きます。
- このサービスアカウントをなりすませるよう、ボットアカウントへ Service Account Token Creator ロールを付与します。特定ロールの付与方法は Google のドキュメント ↗ を参照してください。
mcn-integrations-bot-prod@mcn-gcp-01.iam.gserviceaccount.com
- service account email field に、GCP サービスアカウントの作成に使ったメールアカウントを入力します。
- Project ID field に、プロジェクトに関連する プロジェクト ID ↗ を入力します。
- プロジェクトのダッシュボードに表示された ラベルを追加 ↗ します。
- I authorize Cloudflare to access my GCP account. を選択します。アカウントに管理者権限がない場合は、管理者権限のあるアカウントへこのリンクを渡す必要があることがあります。
- Authorize を選択します。
クラウドプロバイダーを Multi-Cloud Networking に接続できました。Multi-Cloud Networking が見つけたクラウドリソースは クラウドリソースカタログ で確認できます。
- クラウドへのオンランプとして Cloudflare WAN を設定 します。
- Multi-Cloud Networking が見つけた リソースを管理 します。
- クラウド連携を 編集 します。