Skip to content
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

aws_main_route_table_association errors on refresh if VPC has been deleted #1806

Closed
bitglue opened this issue May 5, 2015 · 2 comments
Closed
Assignees

Comments

@bitglue
Copy link

bitglue commented May 5, 2015

To reproduce:

  • 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).

@mitchellh
Copy link
Contributor

Fixed!

@ghost
Copy link

ghost commented May 3, 2020

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 ghost locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants