-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
RDS - Throw error when name or username supplied on DB snapshot restore #17156
Conversation
for rds snapshot restore of mysql, postgresql or mariadb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, @brent-au! I've moved the validation to plan-time and fixed an acceptance test that now causes an error
This has been released in version 3.29.0 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! |
It seems, that raising an error is not enough, since the name of the DB instance is present in the state after it is created from the snapshot. It seems that this PR introduces #17712. |
Yeah we are having this problem now. |
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 |
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! |
This PR will introduce a behaviour to throw an error when restoring from a MySQL, PostgreSQL or MariaDB RDS snapshot and a
name
orusername
attribute is supplied as part of a template.This is to change the current behaviour where the RDS instance is restored from snapshot, but subsequent applies of the same template cause the RDS to be recreated because the
name
and/orusername
attribute has not been honoured during creation.Community Note
Closes #17037
Release note for CHANGELOG:
Output from acceptance testing:
I modifed the MySQL snapshot restore with engine version test template here to include a
name
attribute for themysql_restore
resource, to provoke an error