-
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
resource/rds_cluster: update delete timeout and add additional retry condition #14420
Conversation
(If you see awsproviderlint failures, I just fixed it on master) |
ce8d9ba
to
0b44ac4
Compare
1902680
to
313efd3
Compare
70e0247
to
4ec4276
Compare
4ec4276
to
5cb638d
Compare
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.
Nice! Curious about your thoughts on the two things below, then happy to run the acceptance testing and approve. 👍
aws/resource_aws_rds_cluster_test.go
Outdated
lifecycle { | ||
ignore_changes = [ | ||
replication_source_identifier, | ||
] | ||
} |
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.
I'm curious about this, is the API automatically adding it? 😄 If so, we may want to mark it as Computed: true
in a separate change.
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.
it is in this case -- the rds_cluster that get's the Secondary
role get's this field populated with the identifier/ARN of the Primary
cluster. similarly, if you have 1 global cluster , 1 primary cluster , and 1 regional cluster (reading from the primary cluster e.g. the "secondary" cluster here would be configured without global_cluster_identifier
but with replication_source_identifier
of the "primary" rds_cluster), the API will send back the global_cluster_identifier
also creating the non-empty plan
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.
in the original issue's description, i didn't see a workaround to this behavior so i thought maybe the test configuration is a little off or it was just omitted for brevity? took me a bit of experimenting to get the right combination of primary/secondary rds_clusters 😅
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.
Interesting! For what its worth, I think we're going to mark global_cluster_identifier
as Computed: true
anyways for #10965
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.
nice, that issue def looks similar to what i ran into here
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.
ah looks like there's already an issue related to this param: #10150 .. not sure about the timeout though
ready for re-review/test run 👍 |
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.
Looks great, nice work! 🚀
Output from acceptance testing (failure being tracked in #14275):
--- FAIL: TestAccAWSRDSCluster_s3Restore (1522.51s)
--- PASS: TestAccAWSRDSCluster_AvailabilityZones (130.74s)
--- PASS: TestAccAWSRDSCluster_BacktrackWindow (165.54s)
--- PASS: TestAccAWSRDSCluster_backupsUpdate (145.40s)
--- PASS: TestAccAWSRDSCluster_basic (129.96s)
--- PASS: TestAccAWSRDSCluster_ClusterIdentifierPrefix (120.02s)
--- PASS: TestAccAWSRDSCluster_copyTagsToSnapshot (181.63s)
--- PASS: TestAccAWSRDSCluster_DbSubnetGroupName (125.27s)
--- PASS: TestAccAWSRDSCluster_DeletionProtection (145.35s)
--- PASS: TestAccAWSRDSCluster_EnabledCloudwatchLogsExports (318.13s)
--- PASS: TestAccAWSRDSCluster_EnableHttpEndpoint (327.94s)
--- PASS: TestAccAWSRDSCluster_encrypted (120.43s)
--- PASS: TestAccAWSRDSCluster_EncryptedCrossRegionReplication (1596.81s)
--- PASS: TestAccAWSRDSCluster_EngineMode (420.61s)
--- PASS: TestAccAWSRDSCluster_EngineMode_Global (140.10s)
--- PASS: TestAccAWSRDSCluster_EngineMode_Multimaster (134.68s)
--- PASS: TestAccAWSRDSCluster_EngineMode_ParallelQuery (149.66s)
--- PASS: TestAccAWSRDSCluster_EngineVersion (432.87s)
--- PASS: TestAccAWSRDSCluster_EngineVersionWithPrimaryInstance (1145.51s)
--- PASS: TestAccAWSRDSCluster_generatedName (129.80s)
--- PASS: TestAccAWSRDSCluster_GlobalClusterIdentifier_EngineMode_Global (155.43s)
--- PASS: TestAccAWSRDSCluster_GlobalClusterIdentifier_EngineMode_Global_Add (154.83s)
--- PASS: TestAccAWSRDSCluster_GlobalClusterIdentifier_EngineMode_Global_Remove (149.93s)
--- PASS: TestAccAWSRDSCluster_GlobalClusterIdentifier_EngineMode_Global_Update (157.58s)
--- PASS: TestAccAWSRDSCluster_GlobalClusterIdentifier_EngineMode_Provisioned (123.83s)
--- PASS: TestAccAWSRDSCluster_GlobalClusterIdentifier_PrimarySecondaryClusters (1765.07s)
--- PASS: TestAccAWSRDSCluster_iamAuth (120.11s)
--- PASS: TestAccAWSRDSCluster_kmsKey (151.47s)
--- PASS: TestAccAWSRDSCluster_missingUserNameCausesError (3.43s)
--- PASS: TestAccAWSRDSCluster_Port (257.16s)
--- PASS: TestAccAWSRDSCluster_ScalingConfiguration (318.10s)
--- PASS: TestAccAWSRDSCluster_ScalingConfiguration_DefaultMinCapacity (323.07s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier (348.50s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_DeletionProtection (383.97s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_EncryptedRestore (368.65s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_EngineMode_ParallelQuery (407.96s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_EngineMode_Provisioned (368.22s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_EngineVersion_Different (337.84s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_EngineVersion_Equal (368.32s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_MasterPassword (419.37s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_MasterUsername (378.60s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_PreferredBackupWindow (338.21s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_PreferredMaintenanceWindow (368.34s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_Tags (368.44s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_VpcSecurityGroupIds (349.86s)
--- PASS: TestAccAWSRDSCluster_SnapshotIdentifier_VpcSecurityGroupIds_Tags (389.94s)
--- PASS: TestAccAWSRDSCluster_Tags (121.05s)
--- PASS: TestAccAWSRDSCluster_takeFinalSnapshot (170.36s)
--- PASS: TestAccAWSRDSCluster_updateIamRoles (145.89s)
--- PASS: TestAccAWSRDSClusterInstance_az (742.90s)
--- PASS: TestAccAWSRDSClusterInstance_basic (1526.64s)
--- PASS: TestAccAWSRDSClusterInstance_CACertificateIdentifier (656.31s)
--- PASS: TestAccAWSRDSClusterInstance_CopyTagsToSnapshot (658.03s)
--- PASS: TestAccAWSRDSClusterInstance_disappears (700.46s)
--- PASS: TestAccAWSRDSClusterInstance_generatedName (617.35s)
--- PASS: TestAccAWSRDSClusterInstance_isAlreadyBeingDeleted (771.91s)
--- PASS: TestAccAWSRDSClusterInstance_kmsKey (1319.22s)
--- PASS: TestAccAWSRDSClusterInstance_MonitoringInterval (1320.21s)
--- PASS: TestAccAWSRDSClusterInstance_MonitoringRoleArn_EnabledToDisabled (1024.03s)
--- PASS: TestAccAWSRDSClusterInstance_MonitoringRoleArn_EnabledToRemoved (921.71s)
--- PASS: TestAccAWSRDSClusterInstance_MonitoringRoleArn_RemovedToEnabled (870.44s)
--- PASS: TestAccAWSRDSClusterInstance_namePrefix (657.49s)
--- PASS: TestAccAWSRDSClusterInstance_PerformanceInsightsEnabled_AuroraMysql1 (773.28s)
--- PASS: TestAccAWSRDSClusterInstance_PerformanceInsightsEnabled_AuroraMysql2 (793.02s)
--- PASS: TestAccAWSRDSClusterInstance_PerformanceInsightsEnabled_AuroraPostgresql (742.47s)
--- PASS: TestAccAWSRDSClusterInstance_PerformanceInsightsKmsKeyId_AuroraMysql1 (854.00s)
--- PASS: TestAccAWSRDSClusterInstance_PerformanceInsightsKmsKeyId_AuroraMysql1_DefaultKeyToCustomKey (896.24s)
--- PASS: TestAccAWSRDSClusterInstance_PerformanceInsightsKmsKeyId_AuroraMysql2 (737.93s)
--- PASS: TestAccAWSRDSClusterInstance_PerformanceInsightsKmsKeyId_AuroraMysql2_DefaultKeyToCustomKey (842.37s)
--- PASS: TestAccAWSRDSClusterInstance_PerformanceInsightsKmsKeyId_AuroraPostgresql (821.95s)
--- PASS: TestAccAWSRDSClusterInstance_PerformanceInsightsKmsKeyId_AuroraPostgresql_DefaultKeyToCustomKey (811.40s)
--- PASS: TestAccAWSRDSClusterInstance_PubliclyAccessible (727.84s)
This has been released in version 3.1.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! |
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 #13126
Release note for CHANGELOG:
Output from acceptance testing: