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.81k stars 9.16k forks source link

[Enhancement]: Error when attempting to downgrade RDS Instances/Clusters during plan. #39883

Open nicksia-vgw opened 3 hours ago

nicksia-vgw commented 3 hours ago

Description

Currently, the provider plan will succeed when attempting to change the engine version of an RDS cluster/instance to a lower version, which is not supported by AWS.

We can error early when a user attempts to do this, instead of failing during apply-time

Affected Resource(s) and/or Data Source(s)

aws_rds_cluster

Potential Terraform Configuration

N/A - this change does not change resource configuration.

References

TODO: Provide the actual error

Would you like to implement a fix?

Yes

github-actions[bot] commented 3 hours ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

nicksia-vgw commented 3 hours ago

As mentioned, happy to work on this issue.

Don't think it can be done during validation as we don't have access to the state then, but it doesn't seem to belong in the update function either.

Will continue investigating.