-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Error destroying internet gateway. Error waiting for internet gateway to detach: couldn't find resource #4849
Comments
Hey @danshao, Try adding the gateway dependency |
Hey @danshao – as @toddrosner mentioned, you should explicitly use a Do you by chance have a config that reproduces this error? Your error message is suspicious, |
sorry, didn't mean to close |
I forgot to mention that running @toddrosner I've updated my launch configuration to
This is my configuration for my launch configuration and my autoscaling group.
|
@danshao is the lifecycle issue a result of having |
@toddrosner I added |
@danshao the lifecycle is definitely required if you need to update the user data, then re-apply the plan. However, when you destroy the stack, Terraform will be instructed to create a new launch config before it destroys the launch config, thus creating a cycle (this is by design from AWS and not actually Terraform). If you comment the |
@toddrosner Since I have no intentions of updating the user data and reapplying the plan, I opted to remove the lifecycle A few runs of |
Hi, I have same issue with dependency on
It deploys fine without those
Is there a way to solve that, other than getting rid of modules, and placing all their contents in one folder? |
I have the same issue. if you use an aws_internet_gateway, and have an openvpn instance in another module, the gateway will never destroy if aws_route is used between a vpc/aws_internet_gateway and openvpn instance. the only way to destroy is to manually destroy the openvpn instance. It seems clear that the instance should be destroyed first before the gateway, but this does not occur. |
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. |
I have less than 125 resources but am receiving this error.
Referencing Issue 3350
The only references to the gateway are in the
aws_route_table
resource.The text was updated successfully, but these errors were encountered: