possibly others: The whole point is the error is horrible.
Expected Behavior
I expected a clear error message saying "Cannot import aws_default_route_table using provided id".
Actual Behavior
Terraform printed: "Error: empty result" without indicating which resource, which request, or anything helpful. I needed to switch to TF_LOG=debug to find the hint.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
resource "aws_default_route_table" "drtb" {
vpc = ...
}
import {
to = aws_default_route_table.drtb
id = "rtb-..."
}
Steps to Reproduce
Try to import a aws_default_route_table resource using the wrong import id (rtb-... instead of vpc-...).
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.5.6
AWS Provider Version
5.59.0
Affected Resource(s)
Expected Behavior
I expected a clear error message saying "Cannot import aws_default_route_table using provided id".
Actual Behavior
Terraform printed: "Error: empty result" without indicating which resource, which request, or anything helpful. I needed to switch to
TF_LOG=debug
to find the hint.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Try to import a aws_default_route_table resource using the wrong import id (rtb-... instead of vpc-...).
Debug Output
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None