Closed mergenci closed 12 hours ago
Voting for Prioritization
Volunteering to Work on This Issue
[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.
Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.
Terraform Core Version
1.9.0
AWS Provider Version
5.56.1
Affected Resource(s)
aws_db_instance
Expected Behavior
In case of an error while waiting for an RDS instance to become available during creation, the resource shouldn't leak, i.e., it should be known by Terraform.
Actual Behavior
While creating an RDS instance, I terminated Terraform CLI to simulate an error. In fact, terminating Terraform CLI shouldn't leak resource either. Here's the relevant output:
I could see the resource
terraform-20240701105728974200000001
on AWS Console. When I ranterraform apply
again, terraform planned to create a new resource and had no idea that the resource had already been created. When I confirmed the apply, it created a new resource, leaving the previously created one intact.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
See “Actual Behavior” above.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
Yes