Reputation: 165
We are using Terraform in a project where we implemented an Istio module.
Whenever we run the terraform destroy
command, the Istio module runs a rm -rf
command.
This works fine on Mac machines, on windows machines this causes errors.
For reference, the command is called inside the istio module and is outside of our codebase.
module "istio" {
source = "combinator-ml/istio/k8s"
}
Anyone run into this issue and has a workaround?
Upvotes: 1
Views: 163
Reputation: 165
We ended up using git bash on our windows machines as a workaround
Upvotes: 0
Reputation: 5267
The istio module runs a rm -rf command. This works fine on the Mac machines, on the windows machines this causes errors.
This works as expected. macOS is UNIX-based system and rm -rf
command works. Windows (powershell) doesn't have this command.
The correct, equivalent command on PowerShell would be:
rm C:\path\to\delete -r -fo
Look at this question. There is a very good explanation of this situation.
Back to your problem. If you are using Windows (Powershell) you need to create your custom solution (Powershell script) to delete the appropriate files using Powershell commands.
Upvotes: 1