-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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]: Redshift data
source crashes after redshift is re-created with same name/id
#31407
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
data
source crashes after redshift is re-created with same name/id
This issue resolved itself after the redshift cluster went out of "modifying"-state. So this might be an issue only happening during cluster modification. Our cluster was "modifying" for a long time, probably due to restoration from backup after the recreate, which rendered our state unusable for this time, so I still think this should be looked into. |
Need to add: if rsc.Endpoint != nil |
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. |
Terraform Core Version
1.4.6
AWS Provider Version
4.66.1,4.65.0
Affected Resource(s)
Expected Behavior
Refresh and plan should not crash when looking up a resource through a data source
Actual Behavior
terraform refresh
andterraform plan
produce this crash:Removing the following data lookup stops the crash:
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
Panic Output
Important Factoids
As mentioned in the steps to reproduce, this redshift-cluster has been recreated with the same ID as before. This worked fine prior to the recreation, but after, it started crashing. The error occurred in a "live" terraform environment, but I managed to replicate it in a minimally reproducible environment (completely clean, no existing state), as attached.
Currently, the redshift cluster is shown as in "modifying" Status in the AWS Console.
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: