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
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:
Note: Objects have changed outside of Terraform
Terraform detected the following changes made outside of Terraform since the last "terraform apply" which may have affected this plan:
# module.vpc.aws_route.public_internet_gateway[0] has been deleted
- resource "aws_route" "public_internet_gateway" {
- id = "r-rtb-3b338a511080289494" -> null
# (18 unchanged attributes hidden)
}
and terraform asking to create the public_internet_gateway knowing that we didn't delete it from the aws console!
✋ I have searched the open/closed issues and my issue is not listed.
⚠️ Note
Before you submit an issue, please perform the following first:
Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
Re-initialize the project root to pull down modules: terraform init
Re-attempt your terraform plan or apply and check if the issue still persists
This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days
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.
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: