

如需與 Amazon Timestream for LiveAnalytics 類似的功能，請考慮使用 Amazon Timestream for InfluxDB。它提供簡化的資料擷取和單一位數毫秒查詢回應時間，以進行即時分析。[在這裡](https://docs.aws.amazon.com//timestream/latest/developerguide/timestream-for-influxdb.html)進一步了解。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 設定資料庫執行個體
<a name="timestream-for-influx-configuring"></a>

本節說明如何設定 Amazon Timestream for InfluxDB 資料庫執行個體。建立一個資料庫執行個體之前，決定將執行資料庫執行個體的資料庫執行個體類別。此外，選擇 AWS 區域來決定資料庫執行個體的執行位置。接下來，建立資料庫執行個體。

您可以使用資料庫參數群組來設定資料庫執行個體。資料庫參數群組可做為引擎組態值的容器，這些值會套用至一或多個資料庫執行個體。

可用的參數取決於資料庫引擎和資料庫引擎版本。您可以在建立資料庫執行個體時指定資料庫參數群組。您也可以修改資料庫執行個體來指定它們。

**重要**  
目前，您無法修改現有執行個體的運算 （執行個體類型） 和儲存 （儲存類型） 組態。

## 建立資料庫執行個體
<a name="timestream-for-influx-configuring-create-db"></a>

**使用主控台**

1. 登入 AWS 管理主控台 並開啟 [Amazon Timestream for InfluxDB](https://console.aws.amazon.com/timestream/)。

1. 在 Amazon Timestream for InfluxDB 主控台的右上角，選擇要建立資料庫執行個體 AWS 的區域。

1. 在導覽窗格中，選擇 **InfluxDB 資料庫**。

1. 選擇**建立 Influx 資料庫**。

1. 針對**資料庫執行個體識別符**。輸入可識別您執行個體的名稱。

1. 提供 InfluxDB 基本組態參數 **使用者名稱、組織、儲存貯體名稱和密碼**。
**重要**  
您的使用者名稱、組織、儲存貯體名稱和密碼將儲存為 Secrets Manager 中的秘密，該 AWS 秘密將針對您的帳戶建立。

   如果您需要在資料庫執行個體可用後變更使用者密碼，您可以使用 [Influx CLI ](https://docs.influxdata.com/influxdb/v2/admin/users/change-password/)修改 。

1. 

1. 針對**資料庫執行個體類別**，選取更符合您工作負載需求的執行個體大小。

1. 針對**資料庫儲存體方案**，選取符合您需求的儲存體方案。在所有情況下，您只需要設定配置的儲存體。

1. 在**連線組態**區段中，確保您的 InfluxDB 執行個體與需要連線至 Timestream for InfluxDB 資料庫執行個體的新用戶端位於相同的子網路中。您也可以選擇公開您的資料庫執行個體。

1. 選擇**建立 Influx 資料庫**。

1. 在**資料庫**清單中，選擇新 InfluxDB 執行個體的名稱以顯示其詳細資訊。資料庫執行個體的狀態為**建立**，直到 準備就緒可供使用為止。

1. 狀態變更為 **Available** (可用) 時，您便能連線至資料庫執行個體。視資料庫執行個體類別和儲存體數量而定，可能需要最多 20 分鐘的時間，新執行個體才會可用。

 **使用 CLI**

若要使用 建立資料庫執行個體 AWS Command Line Interface，請使用下列參數呼叫 `create-db-instance`命令：

```
--name
--vpc-subnet-ids
--vpc-security-group-ids
--db-instance-type
--db-storage-type
--username
--organization
--password
--allocated-storage
```

如需每項設定的相關資訊，請參閱 [資料庫執行個體的設定](#timestream-for-influx-configuring-create-db-settings)。

**Example 範例：使用預設引擎組態**  

針對 Linux、macOS 或 Unix：

```
aws timestream-influxdb create-db-instance \
    --name myinfluxDbinstance \
    --allocated-storage 400 \
    --db-instance-type db.influx.4xlarge \
    --vpc-subnet-ids subnetid1 subnetid2
    --vpc-security-group-ids mysecuritygroup \    
    --username masterawsuser \
    --password \
    --db-storage-type InfluxIOIncludedT2
```

針對 Windows：

```
aws timestream-influxdb create-db-instance \
    --name myinfluxDbinstance \
    --allocated-storage 400 \
    --db-instance-type db.influx.4xlarge \
    --vpc-subnet-ids subnetid1 subnetid2
    --vpc-security-group-ids mysecuritygroup \    
    --username masterawsuser \
    --password \
    --db-storage-type InfluxIOIncludedT2
```

 **使用 API**

若要使用 建立資料庫執行個體 AWS Command Line Interface，請使用下列參數呼叫 `CreateDBInstance`命令：

如需每項設定的相關資訊，請參閱 [資料庫執行個體的設定](#timestream-for-influx-configuring-create-db-settings)。

**重要**  
收到 influxAuthParametersSecretArn 的部分 DBInstance 回應物件。這將保留您帳戶中 SecretsManager 秘密的 ARN。它只會在您的 InfluxDB 資料庫執行個體可用之後填入。秘密包含`CreateDbInstance`程序期間提供的流入身分驗證參數。這是 READONLY 複本，因為此秘密的任何updates/modifications/deletions不會影響建立的資料庫執行個體。如果您刪除此秘密，我們的 API 回應仍會參考已刪除的秘密 ARN。

完成建立 Timestream for InfluxDB 資料庫執行個體後，建議您下載、安裝和設定 Influx CLI。

Influx CLI 提供從命令列與 InfluxDB 互動的簡單方法。如需詳細的安裝和設定指示，請參閱[使用 Influx CLI](https://docs.influxdata.com/influxdb/v2/tools/influx-cli/)。

## 資料庫執行個體的設定
<a name="timestream-for-influx-configuring-create-db-settings"></a>

您可以使用 主控台、 CLI `create-db-instance` 命令或 `CreateDBInstance` Timestream for InfluxDB API 操作來建立資料庫執行個體。

下表提供您在建立資料庫執行個體時選擇之設定的詳細資訊。


| 主控台設定 | Description | CLI 選項和 Timestream API 參數 | 
| --- | --- | --- | 
| 配置儲存 | 要配置給資料庫執行個體的儲存量 (以 GiB 為單位)。在部分情況下，配置給資料庫執行個體的儲存空間容量若高於資料庫的大小，可改善輸入/輸出效能。 如需詳細資訊，請參閱[InfluxDB 執行個體儲存體](timestream-for-influxdb.md#timestream-for-influx-dbi-storage)。 | CLI：`allocated-storage` API：`allocatedstorage` | 
| 儲存貯體名稱 | 用於初始化 InfluxDb 執行個體的儲存貯體名稱  | CLI：`bucket` API：`bucket` | 
| 資料庫執行個體類型 | 資料庫執行個體的組態。例如，db.influx.large 資料庫執行個體類別具有 16 GiB 記憶體、2 個 vCPUs、記憶體最佳化。 如果可能，請選擇足夠大的資料庫執行個體類型，讓一般查詢工作集可以保留在記憶體中。當工作集保留在記憶體中時，系統可以避免寫入至磁碟，因而可改善效能。如需詳細資訊，請參閱[資料庫執行個體類別的類型](timestream-for-influxdb.md#timestream-for-influx-dbi-classtypes)。  | CLI：`db-instance-type` API：`Dbinstancetype` | 
| DB instance identifier (資料庫執行個體識別符)： |  資料庫執行個體的名稱。以您命名現場部署伺服器的相同方式，命名您的資料庫執行個體。您的資料庫執行個體識別符最多可包含 63 個英數字元，而且對於您選擇的 AWS 區域中的帳戶來說必須是唯一的。  | CLI：`db-instance-identifier` API：`Dbinstanceidentifier` | 
| DB parameter group (資料庫參數群組) | 資料庫執行個體的參數群組。您可以選擇預設參數群組，或可以建立自訂參數群組。 如需詳細資訊，請參閱 [使用資料庫參數群組](timestream-for-influx-db-connecting.md#timestream-for-influx-working-with-parameter-groups)。  | CLI：`db-parameter-group-name` API：`DBParameterGroupName` | 
| 日誌交付設定 | S3 儲存貯體的名稱是將儲存的 InfluxDB 日誌。  | CLI：`LogDeliveryConfiguration` API：`log-delivery-configuration` | 
| Multi-AZ deployment (異地同步備份部署) | Create a standby instance (建立待命執行個體)，在另一個可用區域中建立資料庫執行個體的被動次要複本，以提供容錯移轉支援。我們建議針對生產工作負載使用 Multi-AZ 以維持高可用性。 針對開發和測試，您可以選擇 Do not create a standby instance (不要建立待命執行個體)。 如需詳細資訊，請參閱[設定和管理多可用區部署](timestream-for-influx-managing-multi-az.md)。  |  CLI：`MultiAz` API：`multi-az`  | 
| 網路類型 |  資料庫執行個體支援的 IP 定址通訊協定。 IPv4 (預設值)，指定資源只能透過網際網路通訊協定第 4 版 (IPv4) 定址通訊協定與資料庫執行個體進行通訊。 Dual-stack mode (雙堆疊模式)指定資源可透過 IPv4、網際網路通訊協定第 6 版 (IPv6) 或兩者與資料庫執行個體進行通訊。如果您有任何資源必須透過 IPv6 定址通訊協定與您的資料庫執行個體進行通訊，請使用雙堆疊模式。此外，請確保將 IPv6 CIDR 區塊與您指定的資料庫子網路群組中的所有子網路相關聯。雖然 IPv6 預設為公有，但我們支援私有 IPv6 端點，但請記住，這是單向門，因為我們不支援在執行個體建立後變更*可公開存取*旗標。  |  CLI：`network-type` API：`NetworkType`  | 
| 密碼 | 這將是您主要使用密碼來初始化 InfluxDB Db 執行個體。您將使用此密碼登入 InfluxUI 以取得您的運算子字符。  | CLI：`password` API：`password` | 
| 公開存取 | Yes (是)，用來給予資料庫執行個體一個公有 IP 地址，這表示可在 VPC 外加以存取。資料庫執行個體也必須位於 VPC 的公有子網路中，才能公開存取。 No (否) 會讓資料庫執行個體只能從 VPC 內存取。 若要從其 VPC 外部連線到資料庫執行個體，資料庫執行個體必須可公開存取。亦須使用資料庫執行個體安全群組的傳入規則授予存取權。此外，必須滿足其他要求。  | CLI：`publicly-accessible` API：`PubliclyAccessible` | 
| 儲存類型 |  資料庫執行個體的儲存體類型 根據您的工作負載需求，您可以選擇 3 種不同類型的佈建的流入 IOPS 包含儲存： \$1 Influx IOPS 已包含 3000 IOPS \$1 Influx IOPS 已包含 12000 IOPS \$1 INflux IOPS 已包含 16000 IOPS  如需詳細資訊，請參閱[InfluxDB 執行個體儲存體](timestream-for-influxdb.md#timestream-for-influx-dbi-storage)。  | CLI：`db-storage-type` API：`DbStorageType` | 
| 初始使用者名稱 | 這將是用來初始化 InfluxDB 資料庫執行個體的主要使用者。您將使用此使用者名稱登入 InfluxUI，以取得您的運算子字符。  | CLI：`username` API：`Username` | 
| 子網路 | 要與此資料庫執行個體建立關聯的 vpc 子網路。  | CLI：`vpc-subnet-ids` API：`VPCSubnetIds` | 
| VPC 安全群組 （防火牆） | 要與資料庫執行個體建立關聯的安全群組。  | CLI：`vpc-security-group-ids` API：`VPCSecurityGroupIds` | 

# 連線至 Amazon Timestream for InfluxDB 資料庫執行個體
<a name="timestream-for-influx-db-connecting"></a>

您必須先建立資料庫執行個體，才能連線到資料庫執行個體。如需相關資訊，請參閱[建立資料庫執行個體](timestream-for-influx-configuring.md#timestream-for-influx-configuring-create-db)。在 Amazon Timestream 佈建資料庫執行個體之後，請使用 InfluxDB API、influx CLI 或任何相容的用戶端或公用程式，讓 InfluxDB 連線至資料庫執行個體。

**Topics**
+ [尋找 Amazon Timestream for InfluxDB 資料庫執行個體的連線資訊](#timestream-for-influx-db-connecting-finding-connection-info)
+ [資料庫身分驗證選項](#timestream-for-influx-db-connecting-authentication-options)
+ [使用參數群組](#timestream-for-influx-parameter-groups)

## 尋找 Amazon Timestream for InfluxDB 資料庫執行個體的連線資訊
<a name="timestream-for-influx-db-connecting-finding-connection-info"></a>

資料庫執行個體的連線資訊包括其端點、連接埠、使用者名稱、密碼和有效的存取字符，例如運算子或全存取字符。例如，對於 Timestream for InfluxDB 資料庫執行個體，假設端點值為 `c5vasdqn0b-3ksj4dla5nfjhi.timestream-influxdb.us-east-1.on.aws`。在此情況下，連接埠值為 8086，資料庫使用者為 *admin*。根據此資訊，若要存取您將使用的執行個體：
+ 執行個體的端點 `c5vasdqn0b-3ksj4dla5nfjhi.timestream-influxdb.us-east-1.on.aws:8086`。
+ 建立執行個體時提供的使用者名稱和密碼，或是有效的存取權杖。

2024 年 12 月 9 日之前建立的執行個體會有端點，其中包含執行個體名稱而非執行個體 ID。例如：`influxdb1-123456789.us-east-1.timestream-influxdb.amazonaws.com`。

**重要**  
作為資料庫執行個體回應物件的一部分，您將會收到 `influxAuthParametersSecretArn`。這將保留您帳戶中 Secrets Manager 秘密的 ARN。只有在您的 InfluxDB 資料庫執行個體可用之後才會填入 t。秘密包含`CreateDbInstance`程序期間提供的 Influx 身分驗證參數。這是**唯讀**複本，因為此秘密的任何updates/modifications/deletions不會影響建立的資料庫執行個體。如果您刪除此秘密，我們的 API 回應仍會參考已刪除的秘密 ARN。

每個資料庫執行個體的端點都是唯一的，連接埠和使用者的值可能會有所不同。若要連線至資料庫執行個體，您可以使用 influx CLI、InfluxDB API 或與 InfluxDB 相容的任何用戶端。

若要尋找資料庫執行個體的連線資訊，請使用 AWS 管理主控台。您也可以使用 AWS Command Line Interface (AWS CLI) `describe-db-instances`命令或 Timestream for InfluxDB API `GetDBInstance`操作。

**使用 AWS 管理主控台**

1. 登入 AWS 管理主控台 並開啟 [Amazon Timestream 主控台](https://console.aws.amazon.com/timestream/)。

1. 在導覽窗格中，選擇 **InfluxDB 資料庫**以顯示資料庫執行個體的清單。

1. 選擇資料庫執行個體的名稱以顯示其詳細資訊。

1. 在**摘要**區段中，複製端點。另外，請記下連線埠號碼。您需要端點和連接埠號碼才能連線到資料庫執行個體。

如果您需要尋找使用者名稱和密碼資訊，請選擇**組態詳細資訊**索引標籤，然後選擇 `influxAuthParametersSecretArn`以存取您的 Secrets Manager。

**使用 CLI**
+ 若要使用 尋找 InfluxDB 資料庫執行個體的連線資訊 AWS CLI，請呼叫 `get-db-instance`命令。在呼叫中，查詢資料庫執行個體 ID、端點、連接埠和 influxAuthParametersSecretArn。

  針對 Linux、macOS 或 Unix：

  ```
  aws timestream-influxdb get-db-instance --identifier id \
   --query "[name,endpoint,influxAuthParametersSecretArn]"
  ```

  針對 Windows：

  ```
  aws timestream-influxdb get-db-instance --identifier id ^
   --query "[name,endpoint,influxAuthParametersSecretArn]"
  ```

  輸出內容應如下所示：若要存取使用者名稱資訊，您需要檢查 `InfluxAuthParameterSecret`。

  ```
  [
      [
          "mydb",
          "mydbid-123456789012.timestream-influxdb.us-east-1.on.aws",
          8086,
      ]
  ]
  ```

### 建立存取權杖
<a name="timestream-for-influx-db-connecting-creating-access-tokens"></a>

透過此資訊，您將能夠連線到執行個體，以擷取或建立您的存取權杖。有幾種方法可以達成此目標：

**使用 CLI**

1. 如果您尚未下載、安裝和設定[流入 CLI](https://docs.influxdata.com/influxdb/v2/tools/influx-cli/)。

1. 設定流入 CLI 組態時，請使用 `--username-password`進行驗證。

   ```
   influx config create --config-name YOUR_CONFIG_NAME --host-url "https://yourinstanceid-accountidentifier.timestream-influxdb.us-east-1.on.aws:8086" --org yourorg --username-password admin --active
   ```

1. 使用 [influx auth create](https://docs.influxdata.com/influxdb/v2/reference/cli/influx/auth/create/) 命令來重新建立您的運算子字符。請注意，此程序會使舊的運算子字符失效。

   ```
   influx auth create --org kronos --operator
   ```

1. 擁有運算子字符後，您可以使用 [influx 身分驗證清單](https://docs.influxdata.com/influxdb/v2/reference/cli/influx/auth/list)命令來檢視所有字符。您可以使用 [influx 驗證建立](https://docs.influxdata.com/influxdb/v2/reference/cli/influx/auth/create/)命令來建立全存取字符。

**重要**  
您需要執行此步驟，才能先取得您的運算子字符。然後，您將可以使用 InfluxDB API 或 CLI 建立新的權杖。

**使用 InfluxDB UI**

1. 使用建立的端點瀏覽至 Timestream for InfluxDB 執行個體，以登入和存取 InfluxDB UI。您需要使用用來建立 InfluxDB 資料庫執行個體的使用者名稱和密碼。您可以從 `influxAuthParametersSecretArn`回應物件中指定的 擷取此資訊`CreateDbInstance`。

   或者，您可以從 Amazon Timestream for InfluxDB 主控台開啟 InfluxDB UI：

   1.  登入 AWS 管理主控台 ，並在 https：// 開啟 Timestream for InfluxDB 主控台。 [https://console.aws.amazon.com/timestream/](https://console.aws.amazon.com/timestream/) 

   1. 在 Amazon Timestream for InfluxDB 主控台的右上角，選擇您在其中建立資料庫執行個體 AWS 的區域。

   1. 在**資料庫**清單中，選擇 InfluxDB 執行個體的名稱以顯示其詳細資訊。在右上角，選擇 **InfluxDB UI**。

1. 登入 InfluxDB UI 後，請使用左側導覽列導覽至**載入資料**，然後導覽至 **API 權杖**。

1. 選擇**產生 API 權杖**，然後選取**所有存取 API 權杖**。

1. 輸入 API 字符的描述，然後選擇**儲存**。

1. 複製產生的字符並存放它以安全保存。

**重要**  
從 InfluxDB UI 建立權杖時，新建立的權杖只會顯示一次。請務必複製這些項目。否則，您將需要重新建立它們。

**使用 InfluxDB API**
+ 使用 POST 請求方法將請求傳送至 InfluxDB API `/api/v2/authorizations`端點。

  在您的請求中包含下列項目：

  1. 標頭：

     1. 授權：權杖 <INFLUX\$1OPERATOR\$1TOKEN>

     1. Content-Type：Application/json

  1. 請求內文：具有下列屬性的 JSON 內文：

     1. 狀態：「作用中」

     1. 描述：API 字符描述

     1. orgID：InfluxDB 組織 ID

     1. 許可：物件陣列，其中每個物件代表 InfluxDB 資源類型或特定資源的許可。每個許可都包含下列屬性：

        1. 動作：「讀取」或「寫入」

        1. 資源：JSON 物件，代表要授予許可的 InfluxDB 資源。每個資源至少包含下列屬性：orgID：InfluxDB 組織 ID

        1. 類型：資源類型。如需 InfluxDB 資源類型的相關資訊，請使用 /api/v2/resources 端點。

下列範例使用 `curl`和 InfluxDB API 來產生全存取字符：

```
export INFLUX_HOST=https://instanceid-123456789.timestream-influxdb.us-east-1.on.aws
export INFLUX_ORG_ID=<YOUR_INFLUXDB_ORG_ID>
export INFLUX_TOKEN=<YOUR_INFLUXDB_OPERATOR_TOKEN>

curl --request POST \
"$INFLUX_HOST/api/v2/authorizations" \
  --header "Authorization: Token $INFLUX_TOKEN" \
  --header "Content-Type: text/plain; charset=utf-8" \
  --data '{
    "status": "active",
    "description": "All access token for get started tutorial",
    "orgID": "'"$INFLUX_ORG_ID"'",
    "permissions": [
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "authorizations"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "authorizations"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "buckets"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "buckets"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "dashboards"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "dashboards"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "orgs"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "orgs"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "sources"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "sources"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "tasks"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "tasks"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "telegrafs"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "telegrafs"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "users"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "users"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "variables"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "variables"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "scrapers"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "scrapers"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "secrets"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "secrets"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "labels"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "labels"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "views"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "views"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "documents"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "documents"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "notificationRules"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "notificationRules"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "notificationEndpoints"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "notificationEndpoints"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "checks"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "checks"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "dbrp"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "dbrp"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "notebooks"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "notebooks"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "annotations"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "annotations"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "remotes"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "remotes"}},
      {"action": "read", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "replications"}},
      {"action": "write", "resource": {"orgID": "'"$INFLUX_ORG_ID"'", "type": "replications"}}
    ]
  }
'
```

## 資料庫身分驗證選項
<a name="timestream-for-influx-db-connecting-authentication-options"></a>

Amazon Timestream for InfluxDB 支援下列方式來驗證資料庫使用者：
+ **密碼身分驗證** – 您的資料庫執行個體會執行使用者帳戶的所有管理。您可以使用 InfluxDB UI、Influx CLI 或 InfluxDB API 建立使用者、指定密碼和管理權杖。
+ **權杖身分驗證** – 資料庫執行個體會執行使用者帳戶的所有管理。您可以透過 influx CLI 和 InfluxDB API，使用運算子字符來建立使用者、指定密碼和管理字符。

### 加密的連線
<a name="timestream-for-influx-db-connecting-authentication-options-encrypted"></a>

您可以從應用程式使用 Secure Socket Layer (SSL) 或 Transport Layer Security (TLS) 來加密與資料庫執行個體的連線。InfluxDB 與 Kronos 服務建立和管理的應用程式之間 TLS 交握所需的憑證。續約憑證時，執行個體會自動更新為最新版本，而不需要任何使用者介入。

## 使用參數群組
<a name="timestream-for-influx-parameter-groups"></a>

資料庫參數指定資料庫的配置方式。例如，資料庫參數可以指定要配置給資料庫的資源量 (例如記憶體)。

您可以透過將資料庫執行個體與參數群組建立關聯來管理資料庫組態。Amazon Timestream for InfluxDB 使用預設設定定義參數群組。您也可以使用自訂設定，定義自己的參數群組。

### 參數群組概觀
<a name="timestream-for-influx-parameter-groups-overview"></a>

資料庫參數群組扮演引擎組態值的容器，以套用至一或多個資料庫執行個體。

**Topics**
+ [預設和自訂參數群組](#timestream-for-influx-parameter-groups-overview-default-custom-parameter-groups)
+ [建立資料庫參數群組](#timestream-for-influx-parameter-groups-creating)
+ [靜態和動態資料庫執行個體參數](#timestream-for-influx-parameter-groups-static-dynamic-parameters)
+ [支援的參數和參數值](#timestream-for-influx-parameter-groups-overview-supported-parameters)

#### 預設和自訂參數群組
<a name="timestream-for-influx-parameter-groups-overview-default-custom-parameter-groups"></a>

資料庫執行個體會使用資料庫參數群組。以下各節介紹資料庫執行個體參數群組的設定和管理。

#### 建立資料庫參數群組
<a name="timestream-for-influx-parameter-groups-creating"></a>

您可以使用 AWS 管理主控台、 AWS Command Line Interface或 Timestream API 建立新的資料庫參數群組。

下列限制適用於資料庫參數群組名稱：
+ 名稱必須為 1 到 255 個字母、數字或連字號。
+ 預設參數群組名稱可以包括句點，例如 `default.InfluxDB.2.7`。不過，自訂參數群組名稱不能包括句點。
+ 第一個字元必須是字母。
+ 名稱不能以「dbpg-」開頭
+ 名稱不能以連字號結尾或包含兩個連續連字號。
+ 如果您在未指定資料庫參數群組的情況下建立資料庫執行個體，資料庫執行個體會使用 InfluxDB 引擎預設值。

您無法修改預設參數群組的參數設定。相反地，您可以執行下列作業：

1. 建立新的參數群組。

1. 變更所需參數的設定。並非參數群組中的所有資料庫引擎參數都有資格進行修改。

1. 更新您的資料庫執行個體以使用自訂參數群組。如需更新資料庫執行個體的詳細資訊，請參閱 [更新資料庫執行個體](timestream-for-influx-managing-modifying-db.md)。

**注意**  
如果您已將資料庫執行個體修改為使用自訂參數群組，且啟動資料庫執行個體，則 Amazon Timestream for InfluxDB 會在啟動程序中自動重新啟動資料庫執行個體。  
 目前，一旦建立自訂參數群組，您將無法對其進行修改。如果您需要變更參數，您必須建立新的自訂參數群組，並將其指派給需要此組態變更的執行個體。如果您更新現有的資料庫執行個體以指派新的參數群組，一律會立即套用並重新啟動執行個體。

#### 靜態和動態資料庫執行個體參數
<a name="timestream-for-influx-parameter-groups-static-dynamic-parameters"></a>

InfluxDB 資料庫執行個體參數一律為靜態。其行為如下：

當您變更靜態參數、儲存資料庫參數群組，並將其指派給執行個體時，參數變更會在執行個體重新啟動後自動生效。

當您將新的資料庫參數群組與資料庫執行個體建立關聯時，Timestream 只會在資料庫執行個體重新啟動後套用修改後的靜態參數。目前唯一選項會立即套用。

 如需變更資料庫叢集參數群組的詳細資訊，請參閱 [更新資料庫執行個體](timestream-for-influx-managing-modifying-db.md)。

#### 支援的參數和參數值
<a name="timestream-for-influx-parameter-groups-overview-supported-parameters"></a>

若要判斷資料庫執行個體支援的參數，請檢視資料庫執行個體所使用的資料庫參數群組中的參數。如需詳細資訊，請參閱[檢視資料庫參數群組的參數值](#timestream-for-influx-working-with-parameter-groups-viewing)。

如需 InfluxDB 開放原始碼版本支援的所有參數的詳細資訊，請參閱 [InfluxDB 組態選項](https://docs.influxdata.com/influxdb/v2/reference/config-options/?t=JSON)。目前您只能修改下列 InfluxDB 參數：


****  

| 參數 | Description | 預設值 | Value | 有效範圍 | 注意 | 
| --- | --- | --- | --- | --- | --- | 
| [flux-log-enabled](https://docs.influxdata.com/influxdb/v2/reference/config-options/?t=JSON) | 包含顯示 Flux 查詢詳細日誌的選項 | FALSE | Boolean | N/A |  | 
| [日誌層級](https://docs.influxdata.com/influxdb/v2/reference/config-options/#log-level) | 記錄輸出層級。InfluxDB 會輸出嚴重性層級大於或等於指定層級的日誌項目。 | info | 除錯、資訊、錯誤 | N/A |  | 
| [無任務](https://docs.influxdata.com/influxdb/v2/reference/config-options/#no-tasks) | 停用任務排程器。如果有問題的任務導致 InfluxDB 無法啟動，請使用此選項啟動 InfluxDB，而無需排程或執行任務。 | FALSE | Boolean | N/A |  | 
| [query-concurrency](https://docs.influxdata.com/influxdb/v2/reference/config-options/#query-concurrency) | 允許同時執行的查詢數量。將 設為 0 允許無限數量的並行查詢。 | 0 |  | 0 到 256 |  | 
| [query-queue-size](https://docs.influxdata.com/influxdb/v2/reference/config-options/#query-queue-size) | 執行佇列中允許的查詢數量上限。達到佇列限制時，會拒絕新的查詢。將 設為 0 可允許佇列中不限數量的查詢。 | 1,024 |  | N/A |  | 
| [tracing-type](https://docs.influxdata.com/influxdb/v2/reference/config-options/#tracing-type) | 在 InfluxDB 中啟用追蹤，並指定追蹤類型。預設會停用追蹤。 | "" | log、jaeger | N/A |  | 
| [停用指標](https://docs.influxdata.com/influxdb/v2/reference/config-options/#metrics-disabled) | 停用公開[內部 InfluxDB 指標](https://docs.influxdata.com/influxdb/v2/reference/internals/metrics/)的 HTTP /metrics 端點。 | FALSE |  | N/A |  | 
| [http-idle-timeout](https://docs.influxdata.com/influxdb/v2/reference/config-options/#http-idle-timeout) | 在等待新請求時，伺服器應保持已建立連線的最長持續時間。設為 `0` 表示沒有逾時。 | 3 公尺0 秒 | 單位 hours、minutes、seconds、 的持續時間milliseconds。範例：durationType=minutes,value=10 | 小時：-下限：0-上限：256，205分鐘：-下限：0-上限：15，372，286秒數：-下限：0-上限：922，337，203毫秒：-下限：0-上限：922，337，203，685 |  | 
| [http-read-header-timeout](https://docs.influxdata.com/influxdb/v2/reference/config-options/#http-read-header-timeout) | 伺服器應嘗試讀取新請求 HTTP 標頭的持續時間上限。設為 `0` 表示沒有逾時。 | 10 秒 | 單位 hours、minutes、seconds、 的持續時間milliseconds。範例：durationType=minutes,value=10 | 小時：-下限：0-上限：256，205分鐘：-下限：0-上限：15，372，286秒數：-下限：0-上限：922，337，203毫秒：-下限：0-上限：922，337，203，685 |  | 
| [http-read-timeout](https://docs.influxdata.com/influxdb/v2/reference/config-options/#http-read-timeout) | 伺服器應嘗試讀取整個新請求的持續時間上限。設為 `0` 表示沒有逾時。 | 0 | 單位 hours、minutes、seconds、 的持續時間milliseconds。範例：durationType=minutes,value=10 | 小時：-下限：0-上限：256，205分鐘：-下限：0-上限：15，372，286秒數：-下限：0-上限：922，337，203毫秒：-下限：0-上限：922，337，203，685 |  | 
| [http-write-timeout](https://docs.influxdata.com/influxdb/v2/reference/config-options/#http-write-timeout) | 伺服器應花費處理和回應寫入請求的最大持續時間。設為 `0` 表示沒有逾時。 | 0 | 單位 hours、minutes、seconds、 的持續時間milliseconds。範例：durationType=minutes,value=10 | 小時：-下限：0-上限：256，205分鐘：-下限：0-上限：15，372，286秒數：-下限：0-上限：922，337，203毫秒：-下限：0-上限：922，337，203，685 |  | 
| [influxql-max-select-buckets](https://docs.influxdata.com/influxdb/v2/reference/config-options/#influxql-max-select-buckets) | `SELECT` 陳述式可以建立的依時間儲存貯體的群組數量上限。 `0` 允許無限數量的儲存貯體。 | 0 | Long |  下限：0 上限：9，223，372，036，854，775，807  |  | 
| [influxql-max-select-point](https://docs.influxdata.com/influxdb/v2/reference/config-options/#influxql-max-select-point) | `SELECT` 陳述式可以處理的點數上限。 `0` 允許無限的點數。InfluxDB 每秒檢查點計數 （因此超過最大值的查詢不會立即中止）。 | 0 | Long |  下限：0 上限：9，223，372，036，854，775，807  |  | 
| [influxql-max-select-series](https://docs.influxdata.com/influxdb/v2/reference/config-options/#influxql-max-select-series) | `SELECT` 陳述式可以傳回的序列數目上限。 `0` 允許不限數量的序列。 | 0 | Long |  下限：0 上限：9，223，372，036，854，775，807  |  | 
| [pprof-disabled](https://docs.influxdata.com/influxdb/v2/reference/config-options/#pprof-disabled) | 停用 `/debug/pprof` HTTP 端點。此端點提供執行時間分析資料，在偵錯時非常有用。 | TRUE | Boolean |  N/A | 雖然 InfluxDB false 預設會將 pprof-disabled 設為 ，但 true 預設會將 pprof-disabled AWS 設為 。 | 
| [query-initial-memory-bytes](https://docs.influxdata.com/influxdb/v2/reference/config-options/#query-initial-memory-bytes) | 為查詢配置的初始記憶體位元組。 | 0 | Long | 下限：0上限： query-memory-bytes |  | 
| [query-max-memory-bytes](https://docs.influxdata.com/influxdb/v2/reference/config-options/#influxql-max-select-series) | 查詢允許的記憶體總位元組數上限。 | 0 | Long | 下限：0上限：9，223，372，036，854，775，807 |  | 
| [query-memory-bytes](https://docs.influxdata.com/influxdb/v2/reference/config-options/#query-memory-bytes) | 指定新建立的使用者工作階段的存留時間 (TTL)，以分鐘為單位。 | 0 | Long | 下限：0上限：2，147，483，647 | 必須大於或等於 query-initial-memory-bytes。 | 
| [工作階段長度](https://docs.influxdata.com/influxdb/v2/reference/config-options/#session-length) | 指定新建立的使用者工作階段的存留時間 (TTL)，以分鐘為單位。 | 60 | Integer | 下限：0上限：2，880 |  | 
| [session-renew-disabled](https://docs.influxdata.com/influxdb/v2/reference/config-options/#session-renew-disabled) | 在每個請求上停用自動擴展使用者的工作階段 TTL。根據預設，每個請求都會將工作階段的過期時間設定為從現在起算 5 分鐘。停用時，工作階段會在指定的[工作階段長度](https://docs.influxdata.com/influxdb/v2/reference/config-options/#session-length)後過期，即使最近處於作用中狀態，使用者也會重新導向至登入頁面。 | FALSE | Boolean | N/A |  | 
| [storage-cache-max-memory-size](https://docs.influxdata.com/influxdb/v2/reference/config-options/#storage-cache-max-memory-size) | 在碎片開始拒絕寫入之前，可以達到的最大大小 （以位元組為單位）。 | 1，073，741，824 | Long | 下限：0上限：549，755，813，888 | 必須低於執行個體的總記憶體容量。我們建議將其設定為低於記憶體總容量的 15%。 | 
| [storage-cache-snapshot-memory-size](https://docs.influxdata.com/influxdb/v2/reference/config-options/#storage-cache-snapshot-memory-size) | 儲存引擎將快照快取並將其寫入 TSM 檔案以提供更多記憶體的大小 （以位元組為單位）。 | 26，214，400 | Long | 下限：0上限：549，755，813，888 | 必須低於 storage-cache-max-memory-size。 | 
| [storage-cache-snapshot-write-cold-duration](https://docs.influxdata.com/influxdb/v2/reference/config-options/#storage-cache-snapshot-write-cold-duration) | 如果碎片未收到寫入或刪除，儲存引擎將快照快取並將其寫入新 TSM 檔案的持續時間。 | 10 公尺0 秒 | 單位 hours、minutes、seconds、 的持續時間milliseconds。範例：durationType=minutes,value=10 | 小時：-下限：0-上限：256，205分鐘：-下限：0-上限：15，372，286秒數：-下限：0-上限：922，337，203毫秒：-下限：0-上限：922，337，203，685 |  | 
| [storage-compact-full-write-cold-duration](https://docs.influxdata.com/influxdb/v2/reference/config-options/#storage-compact-full-write-cold-duration) | 如果尚未收到寫入或刪除，儲存引擎將壓縮碎片中所有 TSM 檔案的持續時間。 | 4h0m0s | 單位 hours、minutes、seconds、 的持續時間milliseconds。範例：durationType=minutes,value=10 | 小時：-下限：0-上限：256，205分鐘：-下限：0-上限：15，372，286秒數：-下限：0-上限：922，337，203毫秒：-下限：0-上限：922，337，203，685 |  | 
| [storage-compact-throughput-burst](https://docs.influxdata.com/influxdb/v2/reference/config-options/#storage-compact-throughput-burst) | TSM 壓縮可寫入磁碟的速率限制 （以每秒位元組為單位）。 | 50，331，648 | Long | 下限：0上限：9，223，372，036，854，775，807 |  | 
| [storage-max-concurrent-compactions](https://docs.influxdata.com/influxdb/v2/reference/config-options/#storage-max-concurrent-compactions) | 可同時執行的完整和關卡壓縮數量上限。的值`0`會產生 50% 的執行時間`runtime.GOMAXPROCS(0)`使用。任何大於零的數字都會將壓縮限制為該值。此設定不適用於快取快照。 | 0 | Integer | 下限：0上限：64 |  | 
| [storage-max-index-log-file-size](https://docs.influxdata.com/influxdb/v2/reference/config-options/#storage-max-index-log-file-size) | 索引預先寫入日誌 (WAL) 檔案將壓縮為索引檔案的大小 （以位元組為單位）。較小的大小會導致日誌檔案更快壓縮，並降低堆積使用量，而犧牲寫入輸送量。 | 1，048，576 | Long | 下限：0上限：9，223，372，036，854，775，807 |  | 
| [storage-no-validate-field-size](https://docs.influxdata.com/influxdb/v2/reference/config-options/#storage-no-validate-field-size) | 略過傳入寫入請求的欄位大小驗證。 | FALSE | Boolean | N/A |  | 
| [storage-retention-check-interval](https://docs.influxdata.com/influxdb/v2/reference/config-options/#storage-retention-check-interval) | 保留政策強制執行檢查的間隔。 | 30 公尺0 秒 | 單位 hours、minutes、seconds、 的持續時間milliseconds。範例：durationType=minutes,value=10 | N/A | 小時：-下限：0-上限：256，205分鐘：-下限：0-上限：15，372，286秒數：-下限：0-上限：922，337，203毫秒：-下限：0-上限：922，337，203，685 | 
| [storage-series-file-max-concurrent-snapshot-compactions](https://docs.influxdata.com/influxdb/v2/reference/config-options/#storage-series-file-max-concurrent-snapshot-compactions) | 可在資料庫中所有序列分割區同時執行的快照壓縮數目上限。 | 0 | Integer | 下限：0上限：64 |  | 
| [storage-series-id-set-cache-size](https://docs.influxdata.com/influxdb/v2/reference/config-options/#storage-series-id-set-cache-size) | 用於 TSI 索引的內部快取大小，用於存放先前計算的序列結果。執行具有相同標籤索引鍵/值述詞的後續查詢時，會快速傳回快取結果，而不需要重新計算。將此值設定為 `0` 將停用快取，並可能會降低查詢效能。 | 100 | Long | 下限：0上限：9，223，372，036，854，775，807 |  | 
| [storage-wal-max-concurrent-writes](https://docs.influxdata.com/influxdb/v2/reference/config-options/#storage-wal-max-concurrent-writes) | 寫入 WAL 目錄以同時嘗試的最大數量。 | 0 | Integer | 下限：0上限：256 |  | 
| [storage-wal-max-write-delay](https://docs.influxdata.com/influxdb/v2/reference/config-options/#storage-wal-max-write-delay) | 寫入 WAL 目錄的寫入請求在達到 WAL 目錄的並行作用中寫入數目上限時等待的時間上限。設定為 `0` 以停用逾時。 | 10m | 單位 hours、minutes、seconds、 的持續時間milliseconds。範例：durationType=minutes,value=10 | 小時：-下限：0-上限：256205分鐘：-下限：0-上限：15，372，286秒數：-下限：0-上限：922，337，203毫秒：-下限：0-上限：922，337，203，685 |  | 
| [ui 停用](https://docs.influxdata.com/influxdb/v2/reference/config-options/#ui-disabled) | 停用 InfluxDB 使用者介面 (UI)。預設會啟用 UI。 | FALSE | Boolean | N/A |  | 

未正確設定參數群組中的參數，可能產生各種意外影響，包括效能降低和系統不穩定。修改資料庫參數時請務必小心。在將這些參數群組變更套用至生產資料庫執行個體之前，在測試資料庫執行個體上測試參數群組設定變更。

### 使用資料庫參數群組
<a name="timestream-for-influx-working-with-parameter-groups"></a>

資料庫執行個體會使用資料庫參數群組。以下各節介紹資料庫執行個體參數群組的設定和管理。

**Topics**
+ [建立資料庫參數群組](#timestream-for-influx-working-with-parameter-groups-creating)
+ [將資料庫參數群組與資料庫執行個體建立關聯](#timestream-for-influx-working-with-parameter-groups-associating)
+ [列出資料庫參數群組](#timestream-for-influx-working-with-parameter-groups-listing)
+ [檢視資料庫參數群組的參數值](#timestream-for-influx-working-with-parameter-groups-viewing)

#### 建立資料庫參數群組
<a name="timestream-for-influx-working-with-parameter-groups-creating"></a>

**使用 AWS 管理主控台**

1. 登入 AWS 管理主控台 並開啟 [Amazon Timestream for InfluxDB 主控台](https://console.aws.amazon.com/timestream/)。

1. 在導覽窗格中，選擇 **Parameter groups** (參數群組)。

1. 選擇 **Create parameter group (建立參數群組)**。

1. 在**參數群組名稱**方塊中，輸入新資料庫參數群組的名稱。

1. 在 **Description (描述)** 方塊中，輸入新資料庫參數群組的描述。

1. 選擇要修改的參數，並套用所需的值。如需支援參數的詳細資訊，請參閱 [支援的參數和參數值](#timestream-for-influx-parameter-groups-overview-supported-parameters)。

1. 選擇 **Create parameter group (建立參數群組)**。

**使用 AWS Command Line Interface**
+ 若要使用 CLI AWS 建立資料庫參數群組，請使用下列參數呼叫 `create-db-parameter-group`命令：

  ```
  --db-parameter-group-name <value>
  --description <value>
  --endpoint_url <value>
  --region <value>
  --parameters (list) (string)
  ```  
**Example 範例**  

  如需每項設定的相關資訊，請參閱 [資料庫執行個體的設定](timestream-for-influx-configuring.md#timestream-for-influx-configuring-create-db-settings)。此範例使用預設引擎組態。

  ```
  aws timestream-influxdb create-db-parameter-group 
      --db-parameter-group-name YOUR_PARAM_GROUP_NAME \
      --endpoint-url YOUR_ENDPOINT \
      --region YOUR_REGION \
      --parameters "InfluxDBv2={logLevel=debug,queryConcurrency=10,metricsDisabled=true}" \" \
      --debug
  ```

#### 將資料庫參數群組與資料庫執行個體建立關聯
<a name="timestream-for-influx-working-with-parameter-groups-associating"></a>

您可以使用自訂設定，建立自己的資料庫參數群組。您可以使用 AWS 管理主控台 AWS Command Line Interface、 或 Timestream for InfluxDB API，將資料庫參數群組與資料庫執行個體建立關聯。您可以在建立或修改資料庫執行個體時執行此動作。

如需建立資料庫參數群組的資訊，請參閱[建立資料庫參數群組](#timestream-for-influx-working-with-parameter-groups-creating)。如需建立資料庫執行個體的相關資訊，請參閱 [建立資料庫執行個體](timestream-for-influx-configuring.md#timestream-for-influx-configuring-create-db)。如需修改資料庫執行個體的相關資訊，請參閱[更新資料庫執行個體](timestream-for-influx-managing-modifying-db.md)。

**注意**  
當您將新的資料庫參數群組與資料庫執行個體建立關聯時，修改後的靜態參數只會在資料庫執行個體重新啟動後套用。目前，僅支援立即套用。InfluxDB 的 Timestream 僅支援靜態參數。

**使用 AWS 管理主控台**

1. 登入 AWS 管理主控台 並開啟 [Amazon Timestream for InfluxDB 主控台](https://console.aws.amazon.com/timestream/)。

1. 在導覽窗格中，選擇 **InfluxDB 資料庫**，然後選擇您要修改的資料庫執行個體。

1. 選擇**更新**。**更新資料庫執行個體**頁面隨即出現。

1. 變更 **DB parameter group** (資料庫參數群組) 設定。

1. 選擇 **Continue (繼續)**，並檢查修改的摘要。

1. 目前僅支援**立即套用**。在某些情況下，此選項可能會導致中斷，因為它將重新啟動您的資料庫執行個體。

1. 在確認頁面上，檢閱您的變更。如果正確，請選擇**更新資料庫執行個體**以儲存變更並套用變更。或者，選擇 **Back (上一步)** 以編輯變更，或是選擇 **Cancel (取消)** 以取消變更。

**使用 AWS Command Line Interface**

針對 Linux、macOS 或 Unix：

```
aws timestream-influxdb update-db-instance 
--identifier YOUR_DB_INSTANCE_ID \
--region YOUR_REGION \
--db-parameter-group-identifier YOUR_PARAM_GROUP_ID \
--log-delivery-configuration "{\"s3Configuration\": {\"bucketName\": \"${LOGGING_BUCKET}\", \"enabled\": false }}"
```

針對 Windows：

```
aws timestream-influxdb update-db-instance 
--identifier YOUR_DB_INSTANCE_ID ^
--region YOUR_REGION ^
--db-parameter-group-identifier YOUR_PARAM_GROUP_ID ^
--log-delivery-configuration "{\"s3Configuration\": {\"bucketName\": \"${LOGGING_BUCKET}\", \"enabled\": false }}"
```

#### 列出資料庫參數群組
<a name="timestream-for-influx-working-with-parameter-groups-listing"></a>

您可以列出您為 AWS 帳戶建立的資料庫參數群組。

**使用 AWS 管理主控台**

1. 登入 AWS 管理主控台 並開啟 [Amazon Timestream for InfluxDB 主控台](https://console.aws.amazon.com/timestream/)。

1. 在導覽窗格中，選擇 **Parameter groups (參數群組)**。

1. 資料庫參數群組隨即會出現在清單中。

**使用 AWS Command Line Interface**

若要列出 AWS 帳戶的所有資料庫參數群組，請使用 AWS Command Line Interface `list-db-parameter-groups`命令。

```
aws timestream-influxdb list-db-parameter-groups --region region
```

若要傳回 AWS 帳戶的特定資料庫參數群組，請使用 AWS Command Line Interface `get-db-parameter-group`命令。

```
aws timestream-influxdb get-db-parameter-group --region region --identifier identifier
```

#### 檢視資料庫參數群組的參數值
<a name="timestream-for-influx-working-with-parameter-groups-viewing"></a>

您可以從資料庫參數群組取得所有參數與其值的清單。

**使用 AWS 管理主控台**

1. 登入 AWS 管理主控台 並開啟 [Amazon Timestream for InfluxDB 主控台](https://console.aws.amazon.com/timestream/)。

1. 在導覽窗格中，選擇 **Parameter groups (參數群組)**。

1. 資料庫參數群組隨即會出現在清單中。

1. 選擇參數群組的名稱，以查看其參數清單。

**使用 AWS Command Line Interface**

若要檢視資料庫參數群組的參數值，請使用 AWS Command Line Interface `get-db-parameter-group` 命令。使用您自己的資訊取代 *parameter-group-identifier*。

```
get-db-parameter-group --identifier parameter-group-identifier
```

**使用 API**

若要檢視資料庫參數群組的參數值，請使用 Timestream API `GetDbParameterGroup`命令。以您自己的資訊取代 *parameter-group-identifier*。

```
GetDbParameterGroup parameter-group-identifier
```