-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_route_table with azurerm_route flipping resources #447
Comments
I've tested the same HCL against terraform v0.10.7 and azurerm provider v0.2.2 and get the expected behavior successfully. Debug output: https://gist.github.com/thiagocaiubi/4030764cf958207a125c28e9e856253e |
I appear to have this issue as well. ~ module.vnet.azurerm_route_table.privrt I'm using 0.10.7 as well and Azure provider 0.3.1. Still reviewing to see if I can work around it and will provide additional information if I find any. Thanks, |
Hello @thiagocaiubi , Since you have already confirmed that this is no longer an issue, can you please go ahead and close this. Thanks, |
VJ, Seems like this issue was introduced between v0.2.2 and v0.3.0. Hope this helps Thanks, |
Thanks, @fstuck37. That's it! |
Hello @thiagocaiubi , @fstuck37 , Thanks for the clarification. I tried the above repro provided by @thiagocaiubi , with Terraform version 0.10.9 and Azure provider version 0.3.2 and could not reproduce it. If this is still an issue with latest version of Terraform and provider, can you provide with me updated repro steps ? Thanks, |
@VaijanathB - seems like v0.3.2 fixes the issue. Not sure what caused it but looks better now. |
Hi @VaijanathB . I've tested with terraform v0.10.8 and azurerm provider v0.3.2 and it worked as expected. I will now close the issue. Thanks! PS: You mentioned terraform v0.10.9, I'm afraid it doesn't exists. |
@thiagocaiubi
Example: resource "azurerm_resource_group" "example-rsg" {
name = "example-rsg"
location = "uksouth"
}
resource "azurerm_virtual_network" "example-vnet" {
name = "example-vnet"
location = "uksouth"
resource_group_name = "example-rsg"
address_space = ["10.0.0.0/24"]
}
resource "azurerm_subnet" "example-subnet" {
name = "example-subnet"
resource_group_name = "example-rsg"
virtual_network_name = "${azurerm_virtual_network.example-vnet.name}"
address_prefix = "10.0.0.0/24"
route_table_id = "${azurerm_route_table.example-udr.id}"
lifecycle {
ignore_changes = ["route_table_id"]
}
}
resource "azurerm_route_table" "example-udr" {
name = "example-udr"
location = "uksouth"
resource_group_name = "example-rsg"
route {
name = "default-route"
address_prefix = "0.0.0.0/0"
next_hop_type = "Internet"
}
}
resource "azurerm_subnet_route_table_association" "perimeter-subnet-association" {
subnet_id = "${azurerm_subnet.example-subnet.id}"
route_table_id = "${azurerm_route_table.example-udr.id}"
}
resource "azurerm_route" "example-route" {
name = "example-route"
resource_group_name = "example-rsg"
route_table_name = "${azurerm_route_table.example-udr.name}"
address_prefix = "192.168.0.0/24"
next_hop_type = "VirtualAppliance"
next_hop_in_ip_address = "10.0.0.1"
} |
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. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Terraform Version
0.10.7
AzureRM Provider Version
0.3.0
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
https://gist.github.com/thiagocaiubi/1c39ca2a9e40f866cc8ae3473b273cf1
Expected Behavior
First
terraform apply
must create the infrastructure.Second
terraform apply
must do nothing.Actual Behavior
Subsequent
terraform apply
are creating/destroying the resources.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform init
terraform apply
terraform apply
References
I guess is something related to the refactoring from Set to List.
Pretty sure that I'm facing the same issue with
azurerm_network_security_group
andazurerm_network_security_rule
.azurerm_route
/azurerm_route_table
- additions #402The text was updated successfully, but these errors were encountered: