Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[resource_monitor_json] Avoid restricted role diffs with restricton_p…
…olicy This hacks around this (already hacky) resource having conflicts with the restricted_roles attribute when the restriction_policy resource is used to manage permissions on monitors. The general strategy is to ignore roles sent back from the API if roles are not explicitly defined in the monitor. Note: This resource should be convered to a framework provider resource, that should provide much easier access to what the user configured and make this handling consistent and esaier to reason about. Scenarios tested: * create monitor and restriction_policy (with and without roles), there should be no diff when running subsequent plans * modify the monitor and restricton policy, e.g. add/remove a role, there should be no diffs when running subsequent plans Open questions: * what does this do to existing monitor_json resources when a user updates?
- Loading branch information