cloudsql/WARN/2026_002

Cloud SQL instances are not running on EOL versions

Product: CloudSQL
Rule class: WARN - Something that is possibly wrong

Description

Check if any Cloud SQL instance is running on a major version that has reached its end of support or deprecation date.

Remediation

To perform an in-place major version upgrade for a Cloud SQL instance:

Using the Google Cloud Console

  1. Go to the Cloud SQL Instances page in the Google Cloud Console.
  2. Click the name of the instance to upgrade.
  3. In the Instance info section of the Overview page, click the Upgrade button next to the database version.
  4. Select the target database version and follow the prompts to complete the upgrade.

Using the gcloud CLI

  1. Check the available target versions for the instance:
    gcloud sql instances describe INSTANCE_NAME --format="value(upgradableDatabaseVersions)"
    
  2. Upgrade the instance to the target version:
    gcloud sql instances patch INSTANCE_NAME --database-version=TARGET_DATABASE_VERSION
    

Note: Major version upgrades require instance downtime. It is highly recommended to perform a dry run on a clone of the instance first to verify application compatibility.

Further information