DopplerHQ / terraform-provider-doppler

Apache License 2.0
23 stars 10 forks source link

ENHANCEMENT: Expose `delete_from_target` for supported by provider syncs #90

Open ViacheslavKudinov opened 2 months ago

ViacheslavKudinov commented 2 months ago

Currently when termination of Terraform resources happens, secrets and "resources" will still remain on the target's side.

As it is supported by REST API it will be great to expose for "users" of provider to be able to set delete_from_target when they decide it is safe to have this behavior. Moreover it is the option on Doppler UI to keep or delete secrets on the target.

So, it will be great to get option to delete secrets of target. Maybe, can be set false by default for the "safety".

ViacheslavKudinov commented 2 months ago

In some sense related to https://github.com/DopplerHQ/terraform-provider-doppler/issues/65 as well

nmanoogian commented 2 months ago

Thanks for the recommendation, @ViacheslavKudinov! Working on this now