Skip to content
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

Feature Request- Add ability for specify archiving an feature flag using launchdarkly_feature_flag #63

Closed
hsy3418 opened this issue Aug 20, 2021 · 2 comments

Comments

@hsy3418
Copy link

hsy3418 commented Aug 20, 2021

Hi,
We are using terraform to manage the full life cycle of feature flags in terraform from creation to deletion. The current issue with deletion of feature flag is as long as we remove an existing feature flag from terraform, it will be deleted without any checking if the feature flag is safe to be deleted, while the LaunchDarkly itself has the archiving ability to check if the flag has any dependencies that will not let users to delete it. So that feature will be nice to have in terraform by providing an archive attribute to launchdarkly_feature_flag, by default it is of course false, and when users trying to archive a flag, and it will set archive = true and the LD api can check if the flag is safe to be archived and return error message if the flag has dependency.

@ldhenry
Copy link
Collaborator

ldhenry commented Aug 24, 2021

Hey @hsy3418,

This is a great suggestion and should be fairly straightforward to add. I've created an internal ticket to track this and will update this issue when the provider is updated to include this feature.

Thanks,
Henry

@sloloris
Copy link
Member

Hi @hsy3418,

Just some casual housekeeping - we did actually add this feature with release 2.1.0 but I forgot to close this issue. I hope that you will be able to make good use of it if you haven't already!

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