hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

[Bug]: Unable to ignore changes to RDS Postgres minor engine version #39579

Open YevheniiPokhvalii opened 2 hours ago

YevheniiPokhvalii commented 2 hours ago

Terraform Core Version

1.9.5

AWS Provider Version

5.69.0

Affected Resource(s)

aws_db_instance

Expected Behavior

Terraform should ignore the minor Postgres versions upgrade when auto_minor_version_upgrade = true. (auto_minor_version_upgrade is true by default)

Actual Behavior

api error InvalidParameterCombination: Cannot upgrade postgres from 13.15 to 13.13

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_db_instance" "db_instance" {
  identifier              = "${var.env_name[var.environment]}-db-instance"
  engine                  = "postgres"
  db_name                 = "example_db"
  engine_version          = "13.13"
}

Steps to Reproduce

Run terraform plan

Terraform will perform the following actions:

  # aws_db_instance.db_instance will be updated in-place
  ~ resource "aws_db_instance" "db_instance" {
      ~ engine_version                        = "13.15" -> "13.13"
        id                                    = "db-someID"
}

Run terraform apply

api error InvalidParameterCombination: Cannot upgrade postgres from 13.15 to 13.13

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

This patch does not seem to fix the issue with Postgres versions: https://github.com/hashicorp/terraform-provider-aws/issues/1198

Postgres versioning: https://www.postgresql.org/docs/release/

Would you like to implement a fix?

None

github-actions[bot] commented 2 hours ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue