Git Product home page Git Product logo

Comments (5)

rosshettel avatar rosshettel commented on May 29, 2024 1

The terraform plan output:

Terraform will perform the following actions:

  # module.api_service.module.postgres.aws_db_parameter_group.default[0] must be replaced
+/- resource "aws_db_parameter_group" "default" {
      ~ arn         = "arn:aws:rds:us-west-2:xxxxxxxxxx:pg:api-db-20220331153311430500000002" -> (known after apply)
      ~ family      = "aurora-postgresql11" -> "aurora-postgresql12" # forces replacement
      ~ id          = "api-db-20220331153311430500000002" -> (known after apply)
      ~ name        = "api-db-20220331153311430500000002" -> (known after apply)
        tags        = {
            "Name" = "api-db"
        }
        # (3 unchanged attributes hidden)
    }

  # module.api_service.module.postgres.aws_rds_cluster.primary[0] will be updated in-place
  ~ resource "aws_rds_cluster" "primary" {
      ~ allow_major_version_upgrade         = false -> true
      ~ db_cluster_parameter_group_name     = "api-db-20220331153311419900000001" -> (known after apply)
      + enable_global_write_forwarding      = false
      ~ engine_version                      = "11.13" -> "12.9"
        id                                  = "api-db"
        tags                                = {
            "Name" = "api-db"
        }
        # (33 unchanged attributes hidden)
    }

  # module.api_service.module.postgres.aws_rds_cluster_instance.default[0] will be updated in-place
  ~ resource "aws_rds_cluster_instance" "default" {
      + apply_immediately                     = true
      ~ db_parameter_group_name               = "api-db-20220331153311430500000002" -> (known after apply)
        id                                    = "api-db-1"
      ~ instance_class                        = "db.t3.large" -> "db.t3.medium"
      ~ preferred_maintenance_window          = "wed:13:04-wed:13:34" -> "wed:03:00-wed:04:00"
        tags                                  = {
            "Name" = "api-db"
        }
        # (24 unchanged attributes hidden)
    }

  # module.api_service.module.postgres.aws_rds_cluster_parameter_group.default[0] must be replaced
+/- resource "aws_rds_cluster_parameter_group" "default" {
      ~ arn         = "arn:aws:rds:us-west-2:xxxxxxxxxxx:cluster-pg:api-db-20220331153311419900000001" -> (known after apply)
      ~ family      = "aurora-postgresql11" -> "aurora-postgresql12" # forces replacement
      ~ id          = "api-db-20220331153311419900000001" -> (known after apply)
      ~ name        = "api-db-20220331153311419900000001" -> (known after apply)
        tags        = {
            "Name" = "api-db"
        }
        # (3 unchanged attributes hidden)
    }

After yes to applying the changes:

module.api_service.module.postgres.aws_db_parameter_group.default[0]: Creating...
module.api_service.module.postgres.aws_rds_cluster_parameter_group.default[0]: Creating...
module.api_service.module.postgres.aws_db_parameter_group.default[0]: Creation complete after 1s [id=api-db-20220331162335693200000001]
module.api_service.module.postgres.aws_rds_cluster_parameter_group.default[0]: Creation complete after 1s [id=api-db-20220331162335693200000002]
module.api_service.module.postgres.aws_rds_cluster.primary[0]: Modifying... [id=api-db]

And then the error:

Error: Failed to modify RDS Cluster (api-db): InvalidParameterCombination: The current DB instance parameter group api-db-20220331153311430500000002 is custom. You must explicitly specify a new DB instance parameter group, either default or custom, for the engine version upgrade.

from terraform-aws-rds-cluster.

Gowiem avatar Gowiem commented on May 29, 2024 1

@rosshettel what did you end up doing to get around this? Any solution you would expect to get implemented at the module layer?

from terraform-aws-rds-cluster.

addavid avatar addavid commented on May 29, 2024 1

@Gowiem This exception is thrown because the module doesn't pass a value to db_instance_parameter_group_name argument in aws_rds_cluster resource. I've opened a PR aws/aws-cli#151 that fixes this issue.

from terraform-aws-rds-cluster.

rosshettel avatar rosshettel commented on May 29, 2024

@Gowiem did not end up getting around this unfortunately, had other priorities come up and so this got put in the backlog. honestly not sure what solution I'd expect since I'm still not exactly sure why this is failing. But maybe instead of using custom DB parameters it could just use the default ones? Seems like that might simplify things a bit

from terraform-aws-rds-cluster.

woz5999 avatar woz5999 commented on May 29, 2024

Seems related to this, which doesn't seem too promising: aws/aws-sdk#392

from terraform-aws-rds-cluster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.