我正在尝试使用concat来组合两个子网列表
我最初也尝试在这两个子网上使用join,但失败了,出现了错误:
join: argument 1 should be type string, got type list in:
我现在正在尝试对相同的字符串使用concat,当它们组合在一起时,将导致一个抛出另一个错误的列表。
conditional operator cannot be used with list values
我现在的代码如下:
subnet_ids = ["${split(",",(terraform.workspace == &
我正在运行下面的Github操作,它应该将terraform plan的输出发布到Github中的PR,但是它给了我一个404。我几乎复制了
我能看到的唯一值得怀疑的是生成404的URL,它看起来像是缺少一个值--上面写着"“,但我认为应该是"”
- name: Run Terraform Plan
id: plan
run: |
cd operations/app/terraform/vars/staging
terraform plan -no-color -input=false
我在Debian 10上使用terraform插件运行Jenkins v2.263.2。我已经创建了一个freestyle项目来触发我的Terraform部署,它首先从我的git代码库和触发terraform中拉出,但在terraform步骤中我得到了这个错误:
FATAL: java.io.FileNotFoundException: Configuration path not found [/var/lib/jenkins/workspace/Terraform/terraform/test.tf].
at org.jenkinsci.plugins.terraform.Terr
我在尝试运行terraform init -upgrade时遇到了问题
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/aws: no available releases match the given constraints >= 2.23.0, >= 2.46.0, >= 3.0.0, >=
│ 3.62.0, >= 3.69.0, ~&
Terraform在运行-target时是否支持terraform plan...标志
在Terraform中,似乎没有打开或关闭此功能的选项。我想知道这是否意味着Terraform作为一个整体不支持模块目标,或者在我的Terraform实例中有一个关闭此功能的选项。
预期结果: Terraform成功创建了该计划。
实际结果: Terraform报告以下错误:
Error: Resource targeting is currently not supported
The "remote" backend does not support resource targetin