RDS - Throw error when name or username supplied on DB snapshot restore#17156
Conversation
for rds snapshot restore of mysql, postgresql or mariadb
|
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
nameorusernameattribute 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
nameand/orusernameattribute 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
nameattribute for themysql_restoreresource, to provoke an error