Open gboutry opened 2 months ago
One way to solve this problem I believe, would be to add a new resource like juju_remote_application
that would essentially behave like consume
on create and remove-saas
on delete.
flowchart LR
A[App A] -->|Integrate| C(Remote APP)
B[App B] -->|Integrate| C
C -->|Cross Model| D[Offer]
D--> E[App C]
Remove-saas removes relation, but with the dependency graph, dependent relations would be removed by terraform before the remote app is destroyed, which should be fine.
This would also help with: https://github.com/juju/terraform-provider-juju/issues/323 I think
Description
SAAS application are not removed when removing the offering model which in turns makes it impossible re-relate the application when re-creating the second model
Urgency
Casually reporting
Terraform Juju Provider version
0.11.0
Terraform version
v1.8.2
Terraform Configuration(s)
Reproduce / Test
Debug/Panic Output
Notes & References
This plan is a simplified version from Sunbeam, where an user can enable / disable the Observability plugin at will, but this is preventing the user from re-enabling it.
https://bugs.launchpad.net/snap-openstack/+bug/2063183