The source project of this merge request has been removed.
fix: Remove group and project variable resources from state when they are no longer found
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
If a group or project variable that is managed by terraform is removed manually, it results in errors in subsequent plan/apply commands. The first time the command is run, the ID is set to the empty string. The following run, the ID cannot be validated and returns the Invalid resource ID format
error. The only workaround after that point is removing the object from state manually.
Signed-off-by: Jonathan Dorsey jonathand@liatrio.com
Edited by 🤖 GitLab Bot 🤖