Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions tidb-cloud/manage-user-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,20 @@ TiDB Cloudは、組織、プロジェクト、リソースに基づいた階層

以下は階層構造の一例です。

- Your organization
- TiDB X instances out of any project
- TiDB Cloud Starter instance 1
- TiDB Cloud Essential instance 1
- TiDB X project 1
- TiDB Cloud Starter instance 2
- TiDB Cloud Starter instance 3
- TiDB Cloud Essential instance 2
- TiDB Cloud Premium instance 1
- TiDB Dedicated project 1
- TiDB Cloud Dedicated cluster 1
- TiDB Cloud Dedicated cluster 2
```
- Your organization
- TiDB X instances out of any project
- TiDB Cloud Starter instance 1
- TiDB Cloud Essential instance 1
- TiDB X project 1
- TiDB Cloud Starter instance 2
- TiDB Cloud Starter instance 3
- TiDB Cloud Essential instance 2
- TiDB Cloud Premium instance 1
- TiDB Dedicated project 1
- TiDB Cloud Dedicated cluster 1
- TiDB Cloud Dedicated cluster 2
```

この構造の下では:

Expand Down
18 changes: 11 additions & 7 deletions tidb-cloud/migrate-from-mysql-using-data-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,16 +219,20 @@ SHOW VARIABLES WHERE Variable_name IN

1. `/etc/my.cnf`を開いて、以下を追加します。

[mysqld]
log_bin = mysql-bin
binlog_format = ROW
binlog_row_image = FULL
binlog_expire_logs_seconds = 604800 # 7 days retention
binlog_transaction_compression = OFF
```
[mysqld]
log_bin = mysql-bin
binlog_format = ROW
binlog_row_image = FULL
binlog_expire_logs_seconds = 604800 # 7 days retention
binlog_transaction_compression = OFF
```

2. 変更を適用するには、MySQLサービスを再起動してください。

sudo systemctl restart mysqld
```
sudo systemctl restart mysqld
```

3. 設定が有効になっていることを確認するには、 `SHOW VARIABLES`ステートメントを再度実行してください。

Expand Down
24 changes: 13 additions & 11 deletions tidb-cloud/security-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,19 @@ TiDB Cloudは、組織、プロジェクト、リソースという階層構造

### 例となる構造 {#example-structure}

- Your organization
- TiDB X instances out of any project
- TiDB Cloud Starter instance 1
- TiDB Cloud Essential instance 1
- TiDB X project 1
- TiDB Cloud Starter instance 2
- TiDB Cloud Starter instance 3
- TiDB Cloud Essential instance 2
- TiDB Dedicated project 1
- TiDB Cloud Dedicated cluster 1
- TiDB Cloud Dedicated cluster 2
```
- Your organization
- TiDB X instances out of any project
- TiDB Cloud Starter instance 1
- TiDB Cloud Essential instance 1
- TiDB X project 1
- TiDB Cloud Starter instance 2
- TiDB Cloud Starter instance 3
- TiDB Cloud Essential instance 2
- TiDB Dedicated project 1
- TiDB Cloud Dedicated cluster 1
- TiDB Cloud Dedicated cluster 2
```

### 主な機能 {#key-features}

Expand Down
12 changes: 7 additions & 5 deletions tidb-cloud/set-up-vpc-peering-connections.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,13 @@ AWS CLI または AWS ダッシュボードを使用して、VPC ピアリング

例えば:

# Sets up the related variables
pcx_tidb_to_app_id="pcx-069f41efddcff66c8"
app_region="us-west-2"
app_vpc_id="vpc-0039fb90bb5cf8698"
tidbcloud_project_cidr="10.250.0.0/16"
```
# Sets up the related variables
pcx_tidb_to_app_id="pcx-069f41efddcff66c8"
app_region="us-west-2"
app_vpc_id="vpc-0039fb90bb5cf8698"
tidbcloud_project_cidr="10.250.0.0/16"
```

4. 次のコマンドを実行します。

Expand Down
24 changes: 14 additions & 10 deletions tidb-cloud/terraform-migrate-cluster-resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,23 @@ terraform state rm ${your_target_cluster_resource}

- ターゲット クラスターがTiDB Cloud Starter の場合は、次のインポート ブロックを`.tf`ファイルに追加し、 `example`目的のリソース名に置き換え、 `${id}` [ステップ1](#step-1-identify-the-tidbcloud_cluster-resource-to-migrate)から取得したクラスター ID に置き換えます。

# TiDB Cloud Starter
import {
to = tidbcloud_serverless_cluster.example
id = "${id}"
}
```
# TiDB Cloud Starter
import {
to = tidbcloud_serverless_cluster.example
id = "${id}"
}
```

- ターゲット クラスターがTiDB Cloud Dedicated の場合は、次のインポート ブロックを`.tf`ファイルに追加し、 `example`目的のリソース名に置き換え、 `${id}` [ステップ1](#step-1-identify-the-tidbcloud_cluster-resource-to-migrate)から取得したクラスター ID に置き換えます。

# TiDB Cloud Dedicated
import {
to = tidbcloud_dedicated_cluster.example
id = "${id}"
}
```
# TiDB Cloud Dedicated
import {
to = tidbcloud_dedicated_cluster.example
id = "${id}"
}
```

## ステップ5. 新しい構成ファイルを生成する {#step-5-generate-the-new-configuration-file}

Expand Down
46 changes: 26 additions & 20 deletions tidb-cloud/terraform-use-dedicated-network-container-resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,26 @@ summary: tidbcloud_dedicated_network_container` リソースを使用して、 T

2. `network_container.tf`ファイルを作成します。

terraform {
required_providers {
tidbcloud = {
source = "tidbcloud/tidbcloud"
}
}
```
terraform {
required_providers {
tidbcloud = {
source = "tidbcloud/tidbcloud"
}
}
}

provider "tidbcloud" {
public_key = "your_public_key"
private_key = "your_private_key"
}
provider "tidbcloud" {
public_key = "your_public_key"
private_key = "your_private_key"
}

resource "tidbcloud_dedicated_network_container" "example" {
project_id = "1372813089454000000"
region_id = "aws-ap-northeast-2"
cidr_notation = "172.16.16.0/21"
}
resource "tidbcloud_dedicated_network_container" "example" {
project_id = "1372813089454000000"
region_id = "aws-ap-northeast-2"
cidr_notation = "172.16.16.0/21"
}
```

`resource`ブロックを使用して、リソース タイプ、リソース名、リソースの詳細など、 TiDB Cloudのリソースを定義します。

Expand Down Expand Up @@ -144,10 +146,12 @@ Terraform によって管理されていないTiDB Cloud Dedicated ネットワ

次のインポート ブロックを`.tf`ファイルに追加し、 `example`目的のリソース名に置き換え、 `${id}` `cluster_id,network_container_id`の形式に置き換えます。

import {
to = tidbcloud_dedicated_network_container.example
id = "${id}"
}
```
import {
to = tidbcloud_dedicated_network_container.example
id = "${id}"
}
```

2. 新しい構成ファイルを生成します。

Expand Down Expand Up @@ -223,4 +227,6 @@ TiDB Cloud Dedicated クラスターを削除するには、 `tidbcloud_dedicate

ここで、 `terraform show`コマンドを実行すると、リソースがクリアされているため、管理対象リソースは表示されません。

$ terraform show
```
$ terraform show
```
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,26 @@ summary: tidbcloud_dedicated_private_endpoint_connection` リソースを使用

2. `private_endpoint_connection.tf`ファイルを作成します。

terraform {
required_providers {
tidbcloud = {
source = "tidbcloud/tidbcloud"
}
}
```
terraform {
required_providers {
tidbcloud = {
source = "tidbcloud/tidbcloud"
}
}
}

provider "tidbcloud" {
public_key = "your_public_key"
private_key = "your_private_key"
}
provider "tidbcloud" {
public_key = "your_public_key"
private_key = "your_private_key"
}

resource "tidbcloud_dedicated_private_endpoint_connection" "example" {
cluster_id = "your_cluster_id"
node_group_id = "your_node_group_id"
endpoint_id = "your_endpoint_id"
}
resource "tidbcloud_dedicated_private_endpoint_connection" "example" {
cluster_id = "your_cluster_id"
node_group_id = "your_node_group_id"
endpoint_id = "your_endpoint_id"
}
```

`resource`ブロックを使用して、リソース タイプ、リソース名、リソースの詳細など、 TiDB Cloudのリソースを定義します。

Expand Down Expand Up @@ -150,10 +152,12 @@ Terraform によって管理されていないTiDB Cloud Dedicated プライベ

次のインポート ブロックを`.tf`ファイルに追加し、 `example`目的のリソース名に置き換え、 `${id}` `cluster_id,dedicated_private_endpoint_connection_id`の形式に置き換えます。

import {
to = tidbcloud_dedicated_private_endpoint_connection.example
id = "${id}"
}
```
import {
to = tidbcloud_dedicated_private_endpoint_connection.example
id = "${id}"
}
```

2. 新しい構成ファイルを生成します。

Expand Down Expand Up @@ -232,4 +236,6 @@ TiDB Cloud Dedicated プライベート エンドポイント接続を削除す

ここで、コマンド`terraform show`を実行すると、リソースがクリアされているため何も表示されません。

$ terraform show
```
$ terraform show
```
50 changes: 28 additions & 22 deletions tidb-cloud/terraform-use-dedicated-vpc-peering-resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,28 @@ summary: tidbcloud_dedicated_vpc_peering` リソースを使用して、 TiDB Cl

2. `vpc_peering.tf`ファイルを作成します。

terraform {
required_providers {
tidbcloud = {
source = "tidbcloud/tidbcloud"
}
}
```
terraform {
required_providers {
tidbcloud = {
source = "tidbcloud/tidbcloud"
}
}
}

provider "tidbcloud" {
public_key = "your_public_key"
private_key = "your_private_key"
}
provider "tidbcloud" {
public_key = "your_public_key"
private_key = "your_private_key"
}

resource "tidbcloud_dedicated_vpc_peering" "example" {
tidb_cloud_region_id = "your_tidb_cloud_region_id"
customer_region_id = "your_customer_region_id"
customer_account_id = "your_customer_account_id"
customer_vpc_id = "your_customer_vpc_id"
customer_vpc_cidr = "your_customer_vpc_cidr"
}
resource "tidbcloud_dedicated_vpc_peering" "example" {
tidb_cloud_region_id = "your_tidb_cloud_region_id"
customer_region_id = "your_customer_region_id"
customer_account_id = "your_customer_account_id"
customer_vpc_id = "your_customer_vpc_id"
customer_vpc_cidr = "your_customer_vpc_cidr"
}
```

`resource`ブロックを使用して、リソース タイプ、リソース名、リソースの詳細など、 TiDB Cloudのリソースを定義します。

Expand Down Expand Up @@ -152,10 +154,12 @@ Terraform によって管理されていないTiDB Cloud Dedicated VPC ピアリ

次のインポート ブロックを`.tf`ファイルに追加し、 `example`目的のリソース名に置き換え、 `${vpc_peering_id}`実際の VPC ピアリング ID に置き換えます。

import {
to = tidbcloud_dedicated_vpc_peering.example
id = "${vpc_peering_id}"
}
```
import {
to = tidbcloud_dedicated_vpc_peering.example
id = "${vpc_peering_id}"
}
```

2. 新しい構成ファイルを生成します。

Expand Down Expand Up @@ -234,4 +238,6 @@ TiDB Cloud Dedicated VPC ピアリングを削除するには、 `tidbcloud_dedi

ここで、コマンド`terraform show`を実行すると、リソースがクリアされているため何も表示されません。

$ terraform show
```
$ terraform show
```
Loading
Loading