-
Notifications
You must be signed in to change notification settings - Fork 2
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
Clarification on sync_with_catalog
behavior in provider v0.57.0
#761
Comments
I think what you're experiencing is a side-effect of the time that terraform generates the plan vs. the time when terraform changes things in the global catalog. If the Only after the plan is applied (the global catalog item has been changed) will terraform recognize a deficiency in the This is the same sort of issue which causes a blueprint commit to lag blueprint changes: At the time the plan was generated, the blueprint was up-to-date! You can force replacement with I don't know of a The |
This is kind of interesting. Maybe |
Hi Chris, Thanks for your explanation, it's clear that, as you pointed out, this behavior is intrinsic to Terraform. At the time of generating the plan, the However, this creates issues when users need to perform the following actions in a single
This is a common scenario for our customer, so we can't ask them to keep splitting these actions into multiple We looked into the We ended up solving the issue by using
The key difference is that the For property sets created in other projects, this replacement isn't necessary, so the This approach allows us to manage both locally and remotely created property sets efficiently, each with the right conditions and lifecycle management. Thanks again for your input!
|
Hi,
Regarding provider version v0.57.0, does the
sync_with_catalog
attribute apply when a property is added, modified, or removed from the Global Catalog during the nextterraform apply
execution?From what I've observed, after adding, modifying, or removing a property from an existing Property Set in the Global Catalog, the subsequent
terraform apply
updates the Property Set in the Global Catalog but does not reimport the updated version into the Blueprint. It is only upon running a secondterraform apply
that the Property Set is re-imported.Is this the expected behavior?
Additionally, I have verified in the terraform plan that the Global Catalog
apstra_property_set
resource is evaluated before the Blueprintapstra_datacenter_property_set
resource. To ensure that all actions on theapstra_property_set
resource are completed before performing actions on theapstra_datacenter_property_set
resource, I have included adepends_on
meta-argument in theapstra_datacenter_property_set
resource, but I am still seeing the same results.Thanks in advance.
The text was updated successfully, but these errors were encountered: