Skip to content

[Feature] Allow for skip_destroy on elasticstack_fleet_agent_policy #356

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

Closed
andrewkroh opened this issue Jun 9, 2023 · 1 comment
Closed

Comments

@andrewkroh
Copy link
Member

andrewkroh commented Jun 9, 2023

Allow setting skip_destroy on the elasticstack_fleet_agent_policy resource.

Proposed description:

skip_destroy - (Optional) Set to true if you do not wish the agent policy to be deleted at destroy time, and instead just remove the agent policy from the Terraform state.

This would be useful when your enrolled Fleet agents are not managed by Terraform. In this case Terraform does not know if it is safe to remove the policy because there may be enrolled agents that are still assigned to this policy. It is not possible, nor would be it safe, to delete an agent policy while an agent is using it.

A similar option is available for other providers' resources for similar reasons. See this query.

@ebeahan
Copy link
Member

ebeahan commented Jun 9, 2023

PR: #357

@tobio tobio closed this as completed Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants