|
I need to remove some items from the state with terraform state rm, is there a way I can do it using these actions or should I install the terraform CLI just for this need? I have tried using the TERRAFORM_PRE_RUN variable as this should be done before a destroy but it doesn't work as terraform init hasn't been executed yet |
Answered by
dflook
Sep 8, 2024
Replies: 1 comment 1 reply
|
Terraform v1.7 introduced the removed block for removing resources from state, which works with these actions. If you are using an earlier version of Terraform you would need to use the |
1 reply
Answer selected by
mteodori
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Terraform v1.7 introduced the removed block for removing resources from state, which works with these actions.
If you are using an earlier version of Terraform you would need to use the
state rmcommand, and there is currently no way to do that with these actions.