

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

# 使用 Amazon RDS 延伸支援，建立資料庫執行個體或多可用區域資料庫叢集
<a name="extended-support-creating-db-instance"></a>

當您建立資料庫執行個體或多可用區域資料庫叢集時，請在 主控台中選取**啟用 RDS 延伸支援**，或使用 中的延伸支援選項 AWS CLI 或 RDS API 中的 參數。當您在 Amazon RDS 延伸支援中註冊資料庫執行個體或多可用區域資料庫叢集時，其會在資料庫執行個體或多可用區域資料庫叢集的生命週期內永久註冊 RDS 延伸支援。

如果您使用主控台，則必須選取**啟用 RDS 延伸支援**。預設不會選取此設定。

如果您使用 AWS CLI 或 RDS API，但未指定 RDS 延伸支援設定，Amazon RDS 會預設為啟用 RDS 延伸支援。當您使用 [CloudFormation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#aws-resource-rds-dbinstance-return-values:~:text=EngineLifecycleSupport) 或其他服務進行自動化時，此預設行為會在 RDS 標準支援結束日期後維持資料庫的可用性。

您可以使用 [AWS CLI](#extended-support-creating-db-instance-create-cli) 或 [RDS API](#extended-support-creating-db-instance-create-api) 來建立資料庫執行個體或多可用區域資料庫叢集，以防止註冊 RDS 延伸支援。

**Topics**
+ [RDS 延伸支援行為](#extended-support-creating-db-instance-behavior)
+ [RDS 延伸支援的考量事項](#extended-support-creating-db-instance-considerations)
+ [使用 RDS 延伸支援建立資料庫執行個體或多可用區域資料庫叢集](#extended-support-creating-db-instance-create)

## RDS 延伸支援行為
<a name="extended-support-creating-db-instance-behavior"></a>

下表摘要說明當主要引擎版本達到 RDS 標準支援結束時會發生的情況。


| RDS 延長支援狀態\$1 | Behavior (行為) | 
| --- | --- | 
|  已啟用  |  Amazon RDS 會向您收取 RDS 延伸支援的費用。  | 
|  Disabled  |  Amazon RDS 會將資料庫執行個體或多可用區域資料庫叢集升級至支援的引擎版本。此升級會在 RDS 標準支援結束日期當天或稍後進行。  | 

\$1 在 RDS 主控台中，RDS 延長支援狀態顯示為是或否。在 AWS CLI 或 RDS API 中，RDS 延長支援狀態顯示為 `open-source-rds-extended-support`或 `open-source-rds-extended-support-disabled`。

## RDS 延伸支援的考量事項
<a name="extended-support-creating-db-instance-considerations"></a>

在建立資料庫執行個體或多可用區域資料庫叢集前，請考慮下列項目：
+ *在* RDS 標準支援結束日期過後，您可以防止建立新的資料庫執行個體或新的多可用區域資料庫叢集，並避免 RDS 延長支援費用。若要這樣做，請使用 AWS CLI 或 RDS API。在 中 AWS CLI，`open-source-rds-extended-support-disabled`為 `--engine-lifecycle-support`選項指定 。在 RDS API 中，為 `LifeCycleSupport` 參數指定 `open-source-rds-extended-support-disabled`。如果您指定 `open-source-rds-extended-support-disabled` 且 RDS 標準支援結束日期已過，則建立資料庫執行個體或多可用區域資料庫叢集 一律會失敗。
+ RDS 延伸支援是在叢集層級設定。在 RDS 主控台、 `--engine-lifecycle-support` 和 `EngineLifecycleSupport` RDS API 中 AWS CLI，叢集的成員一律會有相同的 RDS 延伸支援設定。

如需詳細資訊，請參閱 [MySQL 版本](MySQL.Concepts.VersionMgmt.md)和 [Amazon RDS for PostgreSQL 發佈行事曆](https://docs.aws.amazon.com/AmazonRDS/latest/PostgreSQLReleaseNotes/postgresql-release-calendar.html)。

## 使用 RDS 延伸支援建立資料庫執行個體或多可用區域資料庫叢集
<a name="extended-support-creating-db-instance-create"></a>

您可以使用 、 或 RDS API，使用 RDS 延伸支援版本建立資料庫執行個體或多可用區域資料庫叢集。 AWS 管理主控台 AWS CLI

### 主控台
<a name="extended-support-creating-db-instance-create-console"></a>

當您建立 資料庫執行個體或多可用區域資料庫叢集時，請在**引擎選項**區段中，選取**啟用 RDS 延伸支援**。預設不會選取此設定。

下圖顯示**啟用 RDS 延伸支援**設定：

![\[\]](http://docs.aws.amazon.com/zh_tw/AmazonRDS/latest/UserGuide/images/extended-support-enable.png)


### AWS CLI
<a name="extended-support-creating-db-instance-create-cli"></a>

當您執行 [create-db-instance](https://docs.aws.amazon.com/cli/latest/reference/rds/create-db-instance.html) 或 [create-db-cluster](https://docs.aws.amazon.com/cli/latest/reference/rds/create-db-cluster.html) （多可用區域資料庫叢集） AWS CLI 命令時，`open-source-rds-extended-support`請為 `--engine-lifecycle-support`選項指定 ，以選取 RDS 延伸支援。根據預設，此選項會設為 `open-source-rds-extended-support`。

若要防止在 RDS 標準支援日期結束後建立新的資料庫執行個體或多可用區域資料庫叢集，請為 `--engine-lifecycle-support` 選項指定 `open-source-rds-extended-support-disabled`。這樣做可以避免任何相關聯的 RDS 延長支援費用。

### RDS API
<a name="extended-support-creating-db-instance-create-api"></a>

當您使用 [CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html) 或 [CreateDBCluster](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBCluster.html) (多可用區域資料庫叢集) Amazon RDS API 操作時，請將 `EngineLifecycleSupport` 參數設定為 `open-source-rds-extended-support`，即可選取 RDS 延伸支援。根據預設，此參數會設定為 `open-source-rds-extended-support`。

若要防止在 RDS 標準支援日期結束後建立新的資料庫執行個體或多可用區域資料庫叢集，請為 `EngineLifecycleSupport` 參數指定 `open-source-rds-extended-support-disabled`。這樣做可以避免任何相關聯的 RDS 延長支援費用。

如需詳細資訊，請參閱下列主題：
+ 若要建立資料庫執行個體，請遵循 [建立 Amazon RDS 資料庫執行個體](USER_CreateDBInstance.md) 中關於資料庫引擎的指示。
+ 若要建立多可用區域資料庫叢集，請遵循 [為 Amazon RDS 建立多可用區域資料庫叢集](create-multi-az-db-cluster.md) 中的資料庫引擎指示。