---
title: "Redshift clusters version upgrade is not default"
canonical: "https://kb.cynergy.app/space/MD/1208221700/Redshift%20clusters%20version%20upgrade%20is%20not%20default"
format: markdown
---
# Description

Enabling the "Allow Version Upgrade" feature in Amazon Redshift automates major engine upgrades, ensuring the data warehouse engine receives the latest features, bug fixes, and security updates as they become available.

# Fix - Runtime

## CLI Command

1. Run modify-cluster command (OSX/Linux/UNIX) using the name of the cluster that you want to update as identifier (see Audit section part II, step no. 2) to enable AWS Redshift engine version upgrades for the selected cluster:

```
aws redshift modify-cluster
    --region us-east-1
    --cluster-identifier cc-cluster
    --allow-version-upgrade

```

1. If successful, the command output should return the Redshift cluster new configuration metadata:

```
{
    "Cluster": {
        "PubliclyAccessible": true,
        "NumberOfNodes": 1,
        "PendingModifiedValues": {},
        "VpcId": "vpc-2eb53422",
        "ClusterVersion": "1.0",
        "AutomatedSnapshotRetentionPeriod": 1,
        "ClusterParameterGroups": [
       ...
        "AllowVersionUpgrade": true,
       ...
        "ClusterSubnetGroupName": "default",
        "ClusterSecurityGroups": [],
        "ClusterIdentifier": "cc-cluster",
        "AvailabilityZone": "us-east-1a",
        "NodeType": "ds1.xlarge",
        "ClusterStatus": "available"
    }
}

```

1. Repeat step no. 1 and 2 for other Redshift clusters with engine version upgrades disabled, available in the current region.
2. Change the AWS region by updating the --region command parameter value and repeat steps no. 1 - 3 for other regions.

# Fix - Build time

## Terraform

- **Resource:** aws_redshift_cluster
- **Argument:** allow_version_upgrade

```
resource "aws_redshift_cluster" "default" {
  ...
+ allow_version_upgrade = true
}
```