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
I am using this module and each time I make a change to any resources it forces all of the private subnet route tables to be recreated. Even if I make a new tag on an EC2 instance the change occurs still. I searched through past issues and saw that the issue happens when you create routes using the aws_route resource as well as the inline route. We are creating all routes using the route resource and don't have any inline routes. I also searched through the module and it doesn't appear to making inline routes either.
Note this only does it for the private route tables - the public ones are consistent. But we are also not attaching any new routes to those.
If your request is for a new feature, please use the Feature request template.
[X ] ✋ 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
NOTE on Route Tables and Routes:
Terraform currently provides both a standalone Route resource and a Route Table resource with routes defined in-line. At this time you cannot use a Route Table with in-line routes in conjunction with any Route resources. Doing so will cause a conflict of rule settings and will overwrite rules.
The module uses Route resources, and you are clearly using a Route Table with inline declarations.
resource "aws_route_table" "private" {
route = [ <--- this
Description
I am using this module and each time I make a change to any resources it forces all of the private subnet route tables to be recreated. Even if I make a new tag on an EC2 instance the change occurs still. I searched through past issues and saw that the issue happens when you create routes using the
aws_route
resource as well as the inline route. We are creating all routes using the route resource and don't have any inline routes. I also searched through the module and it doesn't appear to making inline routes either.Note this only does it for the private route tables - the public ones are consistent. But we are also not attaching any new routes to those.
If your request is for a new feature, please use the
Feature request
template.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.15.0
Terraform version: 1.3.0
Reproduction Code [Required]
Steps to reproduce the behavior:
Apply above and make a change small change to any infra.
Expected behavior
Given there are no changes to the subnets or the route tables we would expect them not to be deleted and remade.
Actual behavior
Additional context
I have searched past issues and docs and saw that you cant have routes defined both ways but as shown above we are only using route resources.
The text was updated successfully, but these errors were encountered: