-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: plan always report removing serverlessv2_scaling_configuration on aws_rds_cluster #32381
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hi, Upon further investigation, we found that this is an expected result with Aurora Serverless v2- similarly stated in [1] i.e. Any capacity range that you previously specified for the cluster remains in place, even if all Aurora Serverless v2 DB instances are removed from the cluster (although it does not mean that the cluster is still Serverless). I understand that this behavior seems confusing and not expected however, it is only specific to Serverless v2 by design and I hope these details help. Please let me know if you have any questions or concerns and, I will be happy to address it further:) |
Hi! I have the same issue for almost a year now. I tried to discuss it with AWS Support in June 2023 and got a similar response. Great. |
I had the same issue. |
Same issue. |
Same issue
|
We're encountering this too. It matters because we have a daily job that just runs a plan and apply on our workspace, to prevent drift where people manually change things but don't encode them in Terraform. This matters because we would like to notify if we detect and wipe out drift. This problem means it would notify incorrectly every day. Because of that, we can't notify if our job wipes out drift, it just runs silently and can be hard to reason about. |
@tyrannosaurus-becks welcome to the club. |
Terraform Core Version
1.4.6
AWS Provider Version
5.6.2
Affected Resource(s)
aws_rds_cluster
Expected Behavior
terraform should ignore serverlessv2_scaling_configuration when engine_mode is set to provisioned
Actual Behavior
terraform plan always popup :
even after applying it come back at the next plan
Relevant Error/Panic Output Snippet
I have a aurora 3.x cluster with two nodes (writer, read replica) based on r6g.large setuped by terraform.
I play a little directly in AWS to switch to serverless v2 to test it, then back to provisioned.
Now at every plan, terraform want to remove/change the serverlessv2_scaling_configuration section.
When I am doing aws rds describe-clusters, the cluster that I played with serverless return a section :
even if it isn't serverless anymore.
The same aws rds describe-clusters on a second cluster that I didn't touch (no serverless experiment on it) don't show the ServerlessV2ScalingConfiguration section.
Both cluster are the same in AWS, one writer, one reader r6g.large, mysql aurora 3.x.
Terraform Configuration Files
aws_rds_cluster and aws_rds_cluster_instance to create a Aurora 3.x 8.0.mysql_aurora.3.03. provisionned cluster.
Steps to Reproduce
play in AWS GUI to switch to serverless v2, and back to provisionned.
aws rds describe-clusters on the cluster should return an extra section ServerlessV2ScalingConfiguration even if it isn't serverless anymore.
reapply terraform plan from the original terraform script, it will start to push a change about serverlessv2_scaling_configuration section.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: