-
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 |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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 rm
command, and there is currently no way to do that with these actions.