You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with terraform, create a VPC, a route table, and associate that route table to the VPC with aws_main_route_table_association
delete the VPC through some other means, like the AWS management console
run terraform refresh
You'll get an error:
Error refreshing state: 1 error(s) occurred:
* 1 error(s) occurred:
* Expected to find a single main routing table for VPC: vpc-4bb6992e, but found 0
In this circumstance, I'd expect the state to reflect that the VPC, and thus the route table association, has been deleted. The plan should either do nothing (if we are destroying or the route table association is no longer in the configuration) or re-create the route table association (if the association is still in the configuration).
The text was updated successfully, but these errors were encountered:
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
May 3, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
To reproduce:
aws_main_route_table_association
terraform refresh
You'll get an error:
In this circumstance, I'd expect the state to reflect that the VPC, and thus the route table association, has been deleted. The plan should either do nothing (if we are destroying or the route table association is no longer in the configuration) or re-create the route table association (if the association is still in the configuration).
The text was updated successfully, but these errors were encountered: