-
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
r/db_instance: Fix bug introduced v3.29.0, name, snapshot conflicts #17755
Conversation
ce84d17
to
d346dee
Compare
d346dee
to
1bc2ac6
Compare
1bc2ac6
to
86c2c26
Compare
86c2c26
to
72f9407
Compare
Here is a sum up of what we've learned going through this. Original issue #17037 resulted in fix #17156. However, #17037 did not include any configuration detailing how the problem occurred and merely that a problem had occurred. Unfortunately, the speculative fix in #17156 could not have fixed the issue. The #17037 op was concerned about a diff ( #17156 resulted in many kinds of problems noted in #17712 and #17722. For example, the resource "aws_db_instance" "db" {
allocated_storage = 5
engine = "mysql"
engine_version = "5.7"
instance_class = "db.t3.micro"
deletion_protection = false
skip_final_snapshot = true
snapshot_identifier = aws_db_snapshot.test.db_snapshot_identifier
tags = {
"foo" = "bar"
}
identifier = "yakdriver-tf-acc-target"
maintenance_window = "Sun:00:00-Sun:08:00"
}
resource "aws_db_instance" "source" {
allocated_storage = 5
engine = "mysql"
engine_version = "5.7"
identifier = "yakdriver-tf-acc-source"
instance_class = "db.t3.micro"
name = "yakdrivertfaccdbtesst"
password = "avoid-plaintext-passwords"
username = "tfacctest"
skip_final_snapshot = true
}
resource "aws_db_snapshot" "test" {
db_instance_identifier = aws_db_instance.source.id
db_snapshot_identifier = "yakdriver-tf-acc-snap"
} |
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.
Looking good! 🎉
This is reverting a previous change that didn't include new acceptances tests so I'm using a random set of acceptance tests to ensure nothing went awry. (Daily tests will ensure the rest work as well.)
GovCloud:
--- PASS: TestAccAWSDBInstance_MinorVersion (330.86s)
--- PASS: TestAccAWSDBInstance_namePrefix (362.36s)
--- PASS: TestAccAWSDBInstance_DeletionProtection (399.23s)
--- PASS: TestAccAWSDBInstance_basic (448.55s)
--- PASS: TestAccAWSDBInstance_kmsKey (452.26s)
--- PASS: TestAccAWSDBInstance_EnabledCloudwatchLogsExports_Postgresql (470.55s)
--- PASS: TestAccAWSDBInstance_Password (474.81s)
--- PASS: TestAccAWSDBInstance_iamAuth (498.87s)
--- PASS: TestAccAWSDBInstance_IsAlreadyBeingDeleted (525.67s)
--- PASS: TestAccAWSDBInstance_DbSubnetGroupName (531.73s)
--- PASS: TestAccAWSDBInstance_DbSubnetGroupName_VpcSecurityGroupIds (531.89s)
us-west-2
:
--- PASS: TestAccAWSDBInstance_CACertificateIdentifier (330.23s)
--- PASS: TestAccAWSDBInstance_generatedName (382.24s)
--- PASS: TestAccAWSDBInstance_DbSubnetGroupName_VpcSecurityGroupIds (489.53s)
--- PASS: TestAccAWSDBInstance_MaxAllocatedStorage (505.53s)
--- PASS: TestAccAWSDBInstance_optionGroup (530.20s)
--- PASS: TestAccAWSDBInstance_cloudwatchLogsExportConfiguration (564.96s)
--- PASS: TestAccAWSDBInstance_portUpdate (645.56s)
--- PASS: TestAccAWSDBInstance_EnabledCloudwatchLogsExports_MSSQL (677.47s)
--- PASS: TestAccAWSDBInstance_MonitoringRoleArn_RemovedToEnabled (724.28s)
--- PASS: TestAccAWSDBInstance_NoDeleteAutomatedBackups (737.83s)
--- PASS: TestAccAWSDBInstance_FinalSnapshotIdentifier_SkipFinalSnapshot (789.48s)
--- PASS: TestAccAWSDBInstance_FinalSnapshotIdentifier (832.39s)
--- PASS: TestAccAWSDBInstance_EnabledCloudwatchLogsExports_Oracle (832.94s)
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
Closes #17712, closes #17722
Relates #17037, #17156
Output from acceptance testing:
Notes