diff --git a/docs/operation/connector.md b/docs/operation/connector.md index d0ead135..e0d6ce42 100644 --- a/docs/operation/connector.md +++ b/docs/operation/connector.md @@ -54,6 +54,42 @@ Walrus offers connectors on the following two levels: ![connector-create-cloud](/img/v0.5.0/operation/connector/op-conn-create-cloud-en.png) +#### Creating a Cloud Provider Connector for Azure + +1. Create a service principal in either the [Azure portal](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps/RegisteredApps/Overview) or using the Azure CLI. + +```shell +az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/20000000-0000-0000-0000-000000000000" +``` + +2. Click on `New Connector` in the connectors list and select `Cloud Provider`. + +3. Choose Type `Azure`, and fill in the form with the following information: + +- `Subscription ID`: The subscription ID of the Azure account. +- `Tenant ID`: The tenant ID of the Azure account. +- `Client ID`: The client ID of the service principal, which is the application ID. +- `Client Secret`: The client secret of the service principal. + +![connector-create-azure](/img/v0.6.0/operation/connector/op-conn-create-azure-en.png) + +#### Creating a Cloud Provider Connector for Google Cloud + +1. Create a service account in the Google Cloud Console or choose an existing service account. + +2. Download the JSON key file for the service account. + +3. Click on `New Connector` in the connectors list and select `Cloud Provider`. + +4. Choose Type `Google`, and fill in the form with the following information: + +- `Project`: The project ID of the Google Cloud account. +- `Region`: The region of the Google Cloud account for the resources to be created in. +- `Zone`: The zone of the Google Cloud account for the resources to be created in. All zones are a part of a region. +- `Credentials`: The JSON key file for the service account. + +![connector-create-gcp](/img/v0.6.0/operation/connector/op-conn-create-gcp-en.png) + ### Creating a Version Control Connector 1. Click on `New Connector` in the connectors list and select `Version Control`. diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/operation/connector.md b/i18n/zh/docusaurus-plugin-content-docs/current/operation/connector.md index 525dd447..ccc06eff 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/operation/connector.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/operation/connector.md @@ -53,6 +53,38 @@ Walrus提供了以下两种层级的连接器: ![connector-create-cloud](/img/v0.5.0/operation/connector/op-conn-create-cloud-en.png) +#### 创建 Azure 云厂商连接器 + +1. 在 [Azure 门户](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps/RegisteredApps/Overview) 中或使用 Azure CLI 创建服务主体。 + +```shell +az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/20000000-0000-0000-0000-000000000000" +``` + +2. 在连接器列表点击`新建连接器`,选择`云厂商`。 +3. 在类型中选择`Azure`,使用服务主体的配置填写表单: + +- `Subscription ID`:Azure 订阅 ID。 +- `Tenant ID`:Azure 租户 ID。 +- `Client ID`:Azure 服务主体的客户端 ID。 +- `Client Secret`:Azure 服务主体的客户端密钥。 + +![connector-create-azure](/img/v0.6.0/operation/connector/op-conn-create-azure.png) + +#### 创建 Google 云厂商连接器 + +1. 在 Google Cloud Console 中创建服务账号或选择现有服务账号。 +2. 下载服务账号的密钥文件。 +3. 在连接器列表点击`新建连接器`,选择`云厂商`。 +4. 在类型中选择`Google`,使用服务账号的配置填写表单: + +- `Project`:Google Cloud 项目 ID。 +- `Region`:Google Cloud 项目所在地区。 +- `Zone`:Google Cloud 项目所在区域。所有区域都属于一个地区。 +- `Credentials`:服务账号的 JSON 密钥文件。 + +![connector-create-gcp](/img/v0.6.0/operation/connector/op-conn-create-gcp.png) + ### 创建版本控制连接器 1. 在连接器列表点击`新建连接器`,选择`版本控制`。 diff --git a/static/img/v0.6.0/operation/connector/op-conn-create-azure-en.png b/static/img/v0.6.0/operation/connector/op-conn-create-azure-en.png new file mode 100644 index 00000000..744fa992 Binary files /dev/null and b/static/img/v0.6.0/operation/connector/op-conn-create-azure-en.png differ diff --git a/static/img/v0.6.0/operation/connector/op-conn-create-azure.png b/static/img/v0.6.0/operation/connector/op-conn-create-azure.png new file mode 100644 index 00000000..17c311d5 Binary files /dev/null and b/static/img/v0.6.0/operation/connector/op-conn-create-azure.png differ diff --git a/static/img/v0.6.0/operation/connector/op-conn-create-gcp-en.png.png b/static/img/v0.6.0/operation/connector/op-conn-create-gcp-en.png.png new file mode 100644 index 00000000..8e268bcb Binary files /dev/null and b/static/img/v0.6.0/operation/connector/op-conn-create-gcp-en.png.png differ diff --git a/static/img/v0.6.0/operation/connector/op-conn-create-gcp.png b/static/img/v0.6.0/operation/connector/op-conn-create-gcp.png new file mode 100644 index 00000000..1d7d4d51 Binary files /dev/null and b/static/img/v0.6.0/operation/connector/op-conn-create-gcp.png differ