Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
terraform destroy-拒绝访问_Terraform_Terragrunt - Fatal编程技术网

terraform destroy-拒绝访问

terraform destroy-拒绝访问,terraform,terragrunt,Terraform,Terragrunt,当我调用terraform destroy时,我将得到以下错误,与使用的任何提供者的下一个错误类似 Error: fork/exec /home/shura/code/devops/terragrunt/aws/eci-sandbox/eu-west-1/ops/dummy/.terragrunt-cache/J-_sukmO5D-z2WncfrbXY8hafRo/FQ4q4AgnhaqBBwSZgGy_ql6eP1Y/.terraform/plugins/linux_amd64/terrafo

当我调用
terraform destroy
时,我将得到以下错误,与使用的任何提供者的下一个错误类似

Error: fork/exec /home/shura/code/devops/terragrunt/aws/eci-sandbox/eu-west-1/ops/dummy/.terragrunt-cache/J-_sukmO5D-z2WncfrbXY8hafRo/FQ4q4AgnhaqBBwSZgGy_ql6eP1Y/.terraform/plugins/linux_amd64/terraform-provider-aws_v2.47.0_x4 : permission denied
直接使用terraform或通过terragrunt使用terraform没有区别


我可以注释掉代码中的所有资源,然后第二次应用
terraform
。它会破坏所有资源,没问题

证明问题与配置有关。 我使用运行在VirtualBox内部的Ubuntu18.04来执行所有命令,但源代码存储在主机Win10上,并通过共享文件夹装入VM。 如果我将terraform和terragrunt缓存移出装载的文件系统,那么一切都开始工作

实际上:

# tell terraform to use linux fs
echo 'plugin_cache_dir = "$HOME/.terraform.d/plugin-cache"' > ~/.terraformrc
# tell terragrunt to use linux fs
export TERRAGRUNT_DOWNLOAD=$HOME/.terragrunt.d
我仍然很想知道根本原因是什么。如何使用挂载的fs中断提供程序