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 have a compute service which has a resource link to a config store. In a tf update, I am unlinking the store and deleting it. I expect that the service would be updated first to remove the link, then the config store would be deleted.
Actual Behavior
The config store is attempted to be deleted first, and errors because there is an existing link to a service.
I think the issue is a lack of an implicit dependency between the service and the resource.
Steps to Reproduce
Create a config store resource (not sure if this also applies to KV or secret stores)
Add some entries to the config store
Create a compute service
Link the resource to the compute service
Delete the resource link, config store entries, and config store. Try to apply the plan, and you should get an error as it tries to delete the resource before updating the service to remove the resource link.
The text was updated successfully, but these errors were encountered:
That's going to be tricky, because the Config Store can't be deleted until after the new service-version (which does not reference it) has been activated. It's not sufficient to just clone the 'active' service-version and remove the Config Store link; that service-version has to be made inactive before the existing link will become inactive itself.
Terraform Version
Terraform v1.6.4 via Terraform Enterprise
Affected Fastly Terraform Resource(s)
Please list the affected resources, for example:
fastly_service_compute
fastly_configstore
Expected Behavior
I have a compute service which has a resource link to a config store. In a tf update, I am unlinking the store and deleting it. I expect that the service would be updated first to remove the link, then the config store would be deleted.
Actual Behavior
The config store is attempted to be deleted first, and errors because there is an existing link to a service.
I think the issue is a lack of an implicit dependency between the service and the resource.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: