hey <@U028H7VT5P0>! Getting a strange error when t...
# fleet
b
hey @Benjamin Edwards! Getting a strange error when trying to upgrade fleet from 4.47.3 to 4.49.1
Copy code
module.fleet.module.byo-vpc.module.rds.aws_rds_cluster.this[0]: Modifying... [id=fleet]
╷
│ Error: updating RDS Cluster (fleet): InvalidParameterCombination: Cannot find upgrade target from 8.0.mysql_aurora.3.05.2 with requested version 8.0.mysql_aurora.3.02.2.
│       status code: 400, request id: 9633b699-68d2-4b97-ba57-bc8e6bdcf3c0
│
│   with module.fleet.module.byo-vpc.module.rds.aws_rds_cluster.this[0],
│   on .terraform/modules/fleet.byo-vpc.rds/main.tf line 61, in resource "aws_rds_cluster" "this":
│   61: resource "aws_rds_cluster" "this" {
Looks like it's trying to "upgrade" the MySQL Aurora version to a lower version:
Copy code
# module.fleet.module.byo-vpc.module.rds.aws_rds_cluster.this[0] will be updated in-place
  ~ resource "aws_rds_cluster" "this" {
      ~ engine_version                      = "8.0.mysql_aurora.3.05.2" -> "8.0.mysql_aurora.3.02.2"
        id                                  = "fleet"
        tags                                = {}
        # (46 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.fleet.module.byo-vpc.module.rds.aws_rds_cluster_instance.this["one"] will be updated in-place
  ~ resource "aws_rds_cluster_instance" "this" {
      ~ engine_version                        = "8.0.mysql_aurora.3.05.2" -> "8.0.mysql_aurora.3.02.2"
        id                                    = "fleet-one"
        tags                                  = {}
        # (32 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.fleet.module.byo-vpc.module.rds.aws_rds_cluster_instance.this["two"] will be updated in-place
  ~ resource "aws_rds_cluster_instance" "this" {
      ~ engine_version                        = "8.0.mysql_aurora.3.05.2" -> "8.0.mysql_aurora.3.02.2"
        id                                    = "fleet-two"
        tags                                  = {}
        # (32 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }
It's pulling the
engine_version
variable but I have never touched this and I can't find any reference to version
8.0.mysql_aurora.3.05.2
in the code I have so I am confused how it got upgraded to that version if the code has been specifying
8.0.mysql_aurora.3.02.2
. Any ideas?
b
I think the latest version of our module includes automatic maintenance upgrades for point releases. If you update your rds config to match the version terraform is reporting the error should go away.
b
Sounds good! Didn't want to touch the version number if I didn't need to but I'll do that!
Thanks!