Modifying an Aurora Serverless v1 DB cluster (original) (raw)

After you configure an Aurora Serverless v1 DB cluster, you can modify certain properties with the AWS Management Console, the AWS CLI, or the RDS API. Most of the properties you can modify are the same as for other kinds of Aurora clusters.

The most relevant changes for Aurora Serverless v1 are the following:

Modifying the scaling configuration of an Aurora Serverless v1 DB cluster

You can set the minimum and maximum capacity for the DB cluster. Each capacity unit is equivalent to a specific compute and memory configuration. Aurora Serverless automatically creates scaling rules for thresholds for CPU utilization, connections, and available memory. You can also set whether Aurora Serverless pauses the database when there's no activity and then resumes when activity begins again.

You can set the following specific values for the scaling configuration:

Note

When you modify the capacity range for an Aurora Serverless DB cluster, the change takes place immediately, regardless of whether you choose to apply it immediately or during the next scheduled maintenance window.

You can modify the scaling configuration of an Aurora DB cluster with the AWS Management Console.

To modify an Aurora Serverless v1 DB cluster
  1. Open the Amazon RDS console athttps://console.aws.amazon.com/rds/.
  2. In the navigation pane, choose Databases.
  3. Choose the Aurora Serverless v1 DB cluster that you want to modify.
  4. For Actions, choose Modify cluster.
  5. In the Capacity settings section, modify the scaling configuration.
  6. Choose Continue.
  7. On the Modify DB cluster page, review your modifications, then choose when to apply them.
  8. Choose Modify cluster.

To modify the scaling configuration of an Aurora Serverless v1 DB cluster using the AWS CLI, run the modify-db-cluster AWS CLI command. Specify the --scaling-configuration option to configure the minimum capacity, maximum capacity, and automatic pause when there are no connections. Valid capacity values include the following:

In this example, you modify the scaling configuration of an Aurora Serverless v1 DB cluster namedsample-cluster.

For Linux, macOS, or Unix:

aws rds modify-db-cluster \
    --db-cluster-identifier sample-cluster \
    --scaling-configuration MinCapacity=8,MaxCapacity=64,SecondsUntilAutoPause=500,TimeoutAction='ForceApplyCapacityChange',AutoPause=true

For Windows:

aws rds modify-db-cluster ^
    --db-cluster-identifier sample-cluster ^
    --scaling-configuration MinCapacity=8,MaxCapacity=64,SecondsUntilAutoPause=500,TimeoutAction='ForceApplyCapacityChange',AutoPause=true

You can modify the scaling configuration of an Aurora DB cluster with the ModifyDBCluster API operation. Specify theScalingConfiguration parameter to configure the minimum capacity, maximum capacity, and automatic pause when there are no connections. Valid capacity values include the following:

Upgrading the major version of an Aurora Serverless v1 DB cluster

You can upgrade the major version for an Aurora Serverless v1 DB cluster compatible with PostgreSQL 11 to a corresponding PostgreSQL 13–compatible version.

You can perform an in-place upgrade of an Aurora Serverless v1 DB cluster using the AWS Management Console.

To upgrade an Aurora Serverless v1 DB cluster
  1. Open the Amazon RDS console athttps://console.aws.amazon.com/rds/.
  2. In the navigation pane, choose Databases.
  3. Choose the Aurora Serverless v1 DB cluster that you want to upgrade.
  4. For Actions, choose Modify cluster.
  5. For Version, choose an Aurora PostgreSQL version 13 version number.
    The following example shows an in-place upgrade from Aurora PostgreSQL 11.16 to 13.9.
    Upgrading an Aurora Serverless v1 DB cluster using the console
    If you perform a major version upgrade, leave all of the other properties the same. To change any other properties, do another Modify operation after the upgrade finishes.
  6. Choose Continue.
  7. On the Modify DB cluster page, review your modifications, then choose when to apply them.
  8. Choose Modify cluster.

To perform an in-place upgrade from a PostgreSQL 11–compatible Aurora Serverless v1 DB cluster to a PostgreSQL 13–compatible one, specify the --engine-version parameter with an Aurora PostgreSQL version 13 version number that's compatible with Aurora Serverless v1. Also include the--allow-major-version-upgrade parameter.

In this example, you modify the major version of a PostgreSQL 11–compatible Aurora Serverless v1 DB cluster named sample-cluster. Doing so performs an in-place upgrade to a PostgreSQL 13–compatible Aurora Serverless v1 DB cluster.

aws rds modify-db-cluster \
    --db-cluster-identifier sample-cluster \
    --engine-version 13.serverless_12 \
    --allow-major-version-upgrade

For Windows:

aws rds modify-db-cluster ^
    --db-cluster-identifier sample-cluster ^
    --engine-version 13.serverless_12 ^
    --allow-major-version-upgrade

To perform an in-place upgrade from a PostgreSQL 11–compatible Aurora Serverless v1 DB cluster to a PostgreSQL 13–compatible one, specify the EngineVersion parameter with an Aurora PostgreSQL version 13 version number that's compatible with Aurora Serverless v1. Also include theAllowMajorVersionUpgrade parameter.

Converting an Aurora Serverless v1 DB cluster to provisioned

You can convert an Aurora Serverless v1 DB cluster to a provisioned DB cluster. To perform the conversion, use the AWS CLI or Amazon RDS API to change the DB instance class to Provisioned. Use the steps below to modify your DB instance class.

The following example demonstrates how to use the AWS CLI to convert an Aurora Serverless v1 DB cluster to a provisioned cluster.

To convert an Aurora Serverless v1 DB cluster to a provisioned cluster, run the modify-db-cluster AWS CLI command.

The following parameters are required:

In this example, you convert an Aurora Serverless v1 DB cluster named sample-cluster and use thedb.r5.xlarge DB instance class.

For Linux, macOS, or Unix:

aws rds modify-db-cluster \
--db-cluster-identifier sample-cluster \
--engine-mode provisioned \
--allow-engine-mode-change \
--db-cluster-instance-class db.r5.xlarge

For Windows:

aws rds modify-db-cluster ^
--db-cluster-identifier sample-cluster ^
--engine-mode provisioned ^
--allow-engine-mode-change ^
--db-cluster-instance-class db.r5.xlarge

The following example demonstrates how to use the Amazon RDS API to convert an Aurora Serverless v1 DB cluster to a provisioned cluster.

To convert an Aurora Serverless v1 DB cluster to a provisioned cluster, use the ModifyDBCluster API operation.

The following parameters are required:

Considerations when converting from an Aurora Serverless v1 DB cluster to a provisioned cluster

The following considerations apply when an Aurora Serverless v1 DB cluster is converted to a provisioned cluster:

Note

Depending on the DB instance class you choose, and your database usage, you might see different costs for a provisioned DB cluster compared to Aurora Serverless v1.

If you convert your Aurora Serverless v1 DB cluster to a burstable (db.t*) DB instance class, you might incur additional costs for using the DB cluster. For more information, see DB instance class types.