-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
plan is in a loop changing my "main" route table #26
Comments
This comment was originally opened by @jszwedko as hashicorp/terraform#2879 (comment). It was migrated here as part of the provider split. The original comment is below. @catsby we are seeing this as well -- basically if you associate a route table with an ENI that is associated with an instance, AWS also returns the instance ID on subsequently queries for the route table which causes terraform to think that there is a diff. We took a crack at fixing this today, but the nuances around I think the correct behavior is to have the instance id be persisted to the state file, but not be considered a diff. Here is a diff with a failing test case:
|
This comment was originally opened by @pidah as hashicorp/terraform#2879 (comment). It was migrated here as part of the provider split. The original comment is below. I am running into this issue with eni's -> ~ aws_eip.nat_elastic_ip ~ aws_route_table.app-subnet ~ aws_route_table.databases-subnet |
This comment was originally opened by @gtmtech as hashicorp/terraform#2879 (comment). It was migrated here as part of the provider split. The original comment is below. +1 Did you find a workaround @jszwedko @catsby ? We just ran into this too and we cant roll out an ENI now unless there is a workaround or this is solved. |
This comment was originally opened by @jszwedko as hashicorp/terraform#2879 (comment). It was migrated here as part of the provider split. The original comment is below. @gtmtech unfortunately, no, in our case we just permit the route table update to go through. |
This comment was originally opened by @dsalazar-carecloud as hashicorp/terraform#2879 (comment). It was migrated here as part of the provider split. The original comment is below. Just ran into this issue myself. Same scenario with using the eni parameter.
|
This comment was originally opened by @TimAtLassian as hashicorp/terraform#2879 (comment). It was migrated here as part of the provider split. The original comment is below. Still getting this behaviour in v0.6.6 |
This comment was originally opened by @alexsapran as hashicorp/terraform#2879 (comment). It was migrated here as part of the provider split. The original comment is below. +1 to find a solution. We are facing the same issue. |
This comment was originally opened by @icflournoy as hashicorp/terraform#2879 (comment). It was migrated here as part of the provider split. The original comment is below. +1 I believe I'm facing the same issue.
Part of the output I get every time I run plan or apply. This is for the default route table as well as two secondary route tables.
|
This comment was originally opened by @SpencerBrown as hashicorp/terraform#2879 (comment). It was migrated here as part of the provider split. The original comment is below. Related issue #4097 which is the other side of the coin. If you create a route table entry with an instance id, then do a subsequent plan, Terraform wants to erase the network interface ID that AWS assigns. When Terraform creates a route, then refreshes the state, it needs to expect that AWS is filling in some of the "missing pieces" and simply add those to the state without wanting to change the route resource back to "what it thought it should be". |
This comment was originally opened by @ShadoMagi as hashicorp/terraform#2879 (comment). It was migrated here as part of the provider split. The original comment is below. Following up on this for @jszwedko (I work with him). We were able to get a workaround by declaring the route entries as separate resources and not inline in the route_table. The diff will show if you declare the routes inline in the route_table but not when declared as separate resources. I verified this behavior on version 0.9.2 and version 0.8.8 |
I got same issue
|
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @egarbi as hashicorp/terraform#2879. It was migrated here as part of the provider split. The original body of the issue is below.
terraform plan...
The text was updated successfully, but these errors were encountered: