Repository navigation
Terraform folder deletion fails with projects scheduled for deletion inside #1075
Description
Activity
Hey @lupa95,
thanks for reporting this issue. This is a limitation by the api. I'll forward your request to the resource manager team, so they can have a look, if it's possible, to add a schedule for deletion.
Best regards
Marcel from the STACKIT Developer Tools TeamReacted by lupa95Hello @lupa95,
Thank you for sharing your feedback and taking the time to suggest this feature. We truly appreciate your input and understand how valuable this functionality could be.
At the moment, this feature is not on our current roadmap, and unfortunately, we do not have a suitable workaround to offer. However, your request has been noted and will be reviewed as we continue to evaluate future enhancements.
Thank you for helping us improve.
Best regards
ChristianWe have the same issue.
This is clearly a bug and needs to be fixed asap.
Please prioritize.
Thanks
AlexAny updates here? Can we expect a solution soon?
Can we do something to raise the prio?
Thanks
AlexAny updates?
Hi everyone,
Thank you for bringing this up and for providing the detailed context.
The Resource Manager team is currently working on resolving this API limitation to ensure folders can be managed smoothly even when they contain projects scheduled for deletion.
Our current plan is to have a fix in place around the end of June or early July. Please note that this is our target timeline rather than a binding commitment, but we will keep this thread updated on our progress.
In the meantime, the temporary workaround is to wait until the projects are completely purged before deleting the parent folder.
We appreciate your patience while we work through this!
Best regards,
MarekReacted by alexrothgitReacted by Matthias HauberThanks for taking care of the issue! Are there any updates or a timeline?
Any update here? We really need this features for regular build/deploy tests.
Hi,
any updates?
You mentioned June/July for a fix.
Or did I miss some other information?Thanks
AlexAny updates here? We really wait for folder destroy.
Hi @alexrothgit and @lweberru,
Thank you for your continued patience! The implementation of this has been delayed slightly, as our team has been prioritizing a few other major features over the past few months.
That being said, this feature is still on our roadmap and remains something we plan to support. We are hoping to get it implemented within the next few months.
We really appreciate your feedback and your understanding!
Description
We are using Terraform to manage projects and folders in our Stackit organization.
A pretty frequent use case for us is to delete a project and the folder it was located in. Destroying a project does not delete it right away but schedules it for deletion after some days in Stackit (which is good). However, this causes an issue, that prevents the deletion of it's parent folder.
My best idea would be to implement some logic that upon trying to delete a folder, all projects inside are checked if they are scheduled for deletion. If true, the folder is also scheduled for deletion.
If there is a way to work around it in Terraform, please let me know.
Steps to reproduce
terraform applyterraform destroyActual behavior
Error occurs:
Expected behavior
Project and folder are properly removed from Terraform state and scheduled for deletion.
Environment
terraform --version):v1.13.4v0.68.0Additional information
Feel free to add any additional information here.