-
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
Regenerating azurerm_traffic_manager_profile orphans azurerm_traffic_manager_endpoint resources #763
Comments
We are in the same situation here. When recreating the azure traffic manager because of changing the monitoring port we get our existing endpoints removed. Running another plan makes terraform notice there are missing endpoints and they get added. Running version 0.10.0 Azurerm 0.1.2 Might be related to this specific function not gathering endpoint configs? |
Are there any plans to fix this asap? If I tag traffic manager profile, and the tag changed, the endpoint resources are still orphaned |
I agree that this is quite serious. It seems that the only way to change a traffic manager profile is to completely remove it first and then rebuild it from scratch. Just changing it removes the endpoints from the profile. |
Same here. Endpoints get created the first time and then removed on any consecutive run even if there is no change to traffic manager. This is obviously pretty bad and takes down everything behind TM. |
👋 hi all Taking a look into this this appears to be an issue in Terraform Core which has previously been requested in this repository in #326. Rather than having multiple issues open tracking the same thing I'm going to close this issue in favour of that one; however in either case this needs to be fixed in Terraform Core (as such it may get moved again, but I figure it's easier to track this in a single issue). Thanks! |
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 👉 [email protected]. Thanks! |
EDIT 1/29/2017:
As it turns out, changing the
dns_config
property does force recreating the traffic manager profile, while changes to themonitor_config
does NOT force recreation, but the endpoint resources are still orphaned regardless of the change.Hi there,
I'm having an issue that when I am forced to regenerate an
azurerm_traffic_manager_profile
resource, the associatedazurerm_traffic_manager_endpoint
resources get quietly orphaned from their parent resource and are not regenerated. This results in my traffic manager being regenerated without any endpoints!These concerns over dependent resource lifecycles appears to to be pretty much the same problem that's described in issue #240 on the AWS provider repo, but I think that just fixing this may not be enough of a solution. That problem needs to be addressed, but the real issue here may be that my traffic manager is getting regenerated when the only thing I change is a value on the
monitor_config
parameter.Expected Behavior
When an
azurerm_traffic_manager_profile
is regenerated, anyazurerm_traffic_manager_endpoint
resources associated with it are also regenerated.Also: Changing the
monitor_config
ordns_config
parameters on anazurerm_traffic_manager_profile
resource should be low-impact and not destroy resources.Actual Behavior
Regenerating an
azurerm_traffic_manager_profile
resource leaves its dependentazurerm_traffic_manager_endpoint
resources orphaned and does not recreate them.Also: Changing non-destructive parameters destroys and regenerates the resource, adding significant risk to modifying an existing, production-deployed resource.
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
The text was updated successfully, but these errors were encountered: