-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
The aws route public_internet_gateway of the route table getting deleted then recreated #1070
Comments
This issue has been automatically marked as stale because it has been open 30 days |
Is this an issue with the module, or the way the aws_default_route_table Terraform resource works? https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/default_route_table When Terraform first adopts a default route table, it immediately removes all defined routes. It then proceeds to create any routes specified in the configuration. |
In this case we lost route |
This issue has been automatically marked as stale because it has been open 30 days |
This issue was automatically closed because of stale in 10 days |
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. |
Description
We upgraded our VPC module from version 3.14 to 5.5.2, when we did the terraform plan and apply there were default resources that were created including the default security group, the vpc network acl, the default route table, and that's related to the breaking changes introduced since version 4.0.0. the following are the resources that asked to be created:
After we applied this we had connectivity issues and when planning the module again we got this:
and terraform asking to create the public_internet_gateway knowing that we didn't delete it from the aws console!
Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Module version [Required]: 5.5.2
Terraform version: v1.8.0
provider registry.terraform.io/hashicorp/aws: v4.1.0
Reproduction Code [Required]
Steps to reproduce the behavior:
Expected behavior
The aws route public_internet_gateway is not getting deleted.
Actual behavior
The public_internet_gateway got deleted and recreated in second apply.
Terminal Output Screenshot(s)
Added in the description above.
Additional context
The text was updated successfully, but these errors were encountered: