gpt4 book ai didi

terraform - Windows中执行 "The filename or extension is too long"时看到 "terragrunt plan"

转载 作者:行者123 更新时间:2023-12-05 06:00:37 27 4
gpt4 key购买 nike

从 Visual Studio 代码执行“terragrunt plan”会在 Windows 10 中出现以下错误:

运行命令:terraform init -backend-config=region=eu-west-2 -backend-config=bucket=bucket-name"-backend-config=dynamodb_table=lock-table -backend-config=encrypt=true -后端配置=key=ec2/terraform.tfstate

正在初始化后端...

成功配置后端“s3”! Terraform 会自动除非后端配置更改,否则使用此后端。

正在初始化提供程序插件...

  • 正在查找匹配“~> 3.36.0”的 hashicorp/aws 版本...
  • 正在安装 hashicorp/aws v3.36.0...

错误:无法安装提供程序

安装 hashicorp/aws v3.36.0 时出错:mkdir.terraform/plugins/registry.terraform.io/hashicorp/aws/3.36.0/windows_amd64:文件名或扩展名太长。

[terragrunt] 2021/05/19 15:39:20 出现多个错误:退出状态1

最佳答案

今天遇到了这个问题,我通过创建一个 TERRAGRUNT_DOWNLOAD 环境变量解决了这个问题。

我将值设置为 TERRAGRUNT_DOWNLOAD=C:\.terragrunt-cache

从这个问题得到这个解决方案 https://github.com/gruntwork-io/terragrunt/issues/581#issuecomment-460051767

关于terraform - Windows中执行 "The filename or extension is too long"时看到 "terragrunt plan",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67606755/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com