-
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 introduced v3.29.0 with RDS Validation and Snapshots #17712
Comments
We got the bug using |
@tedivm Thanks for raising this issue. |
Yes, that's what i mean. |
Running Terraform 0.13.6 and provider 3.29.0. We've encountered this bug with
I just tested setting |
The variable is defined here- variable "snapshot_identifier" {
description = "in case you are recovering from a snapshot."
type = string
default = null
} Downstream we have a module using it, but the variable there is also set to null by default- variable "hubble_snapshot_identifier" {
type = string
default = null
} The |
I take that back, it turns out for this project they were specifying a string! Sorry for not checking that more thoroughly on my end. |
@mrobinson513 Similar here. Hit this straight after 3.29 release as the default for |
Getting this error when both username and snapshot identifier are clearly set to different values. |
#17722 is similar, but not quite the same though. Arguably, passing "" as a |
This is not just hitting V3 but also hitting v2 i.e. we are using v0.12.29 and all the our existing reources which were built with a predefined snapshots are failing too when running terragrunt plan since last two days. it would be great if there is a retrofit for terraform 12 too. |
I don't think, the version of Terraform is important here. The question is just if you use the buggy version of the plugin or not, I would say ... |
is happenning to me now and i am on terraform cloud. I believe the conflict is in Take a look at line 63 and 139 |
1 similar comment
is happenning to me now and i am on terraform cloud. I believe the conflict is in Take a look at line 63 and 139 |
I think the majority of the community is tracking the issue at #17712 |
Getting this too when providing a value for |
Changing the following is a workaround for me in the interim provider "aws" {
version = "= 3.28.0"
} |
In my case i was only creating a simple RDS PostgreSQL instance. So I just used the aws_db_instance resource and disabled the db module. |
Getting the same issue, didn't set |
^This one gives warning & is deprecated in terraform 0.14.x, use
|
Being hit by this issue, using provider version 3.29 and setting
|
The instance is probably already there, right? |
Same here |
Same here, we have default value for snapshot_identifier=""
We are kind of blocked at the moment. When we can expect a fix for that ? |
Yes, the infrastructure is already deployed! |
This is why |
You can just use an older version of the provider as suggested by kahootali
|
Hi, I'm getting the same error
In my case, snapshot_identifier has a value being passed to it. I am trying to replace my RDS with the new snapshot. |
@konstl000 which is exactly what this bug is about right? :) With 3.29 ... you cannot define a but like me, If you had previously spun up a database based on a snapshot and provided the name, now using the new provider version you get a conflict, if you then send null, you will get an error. Not providing the |
The bug is even meaner than that. Even if you do not provide any name at all and deploy an instance from a snapshot, the next attempt of plan will fail. This is what I am trying to say :-) Look at my example in #17722. |
Hi, Same here, considering default empty "snapshot_identifier" value and "username" is filled with something.
|
Also happening on Terraform version 0.13.5 |
@TrangPham problem is related to AWS provider version not Terraform version |
This has been released in version 3.29.1 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform CLI and Terraform AWS Provider Version
v3.29.0 for AWS Provider
v0.14.5 for Terraform
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
Because we're passing null in for the snapshot we'd expect validation to succeed.
Actual Behavior
Validation fails because it does not take the null case into account.
Steps to Reproduce
aws_db_instance
resource that includes a username and passes in null for the snapshot id.terraform apply
Important Factoids
This is a bug introduced in #17156
References
The text was updated successfully, but these errors were encountered: