因此,我正在使用terraform创建有关特定应用程序洞察的计划查询警报 resource "azurerm_template_deployment" "rule1" {
name = "queryrule${md5(format("%s-%s", var.resourcegroupname, var.name))}" # This is the name of the deployment (has to be unique for each rule)
resource_group_n
我正在使用Terraform创建Azure函数应用程序。我希望在运行时使用数据块下载并传递函数应用程序设置到terraform配置。
我创建了第二个Repo,名为<Feature/ function >,并在settings.json文件中创建了一个函数应用程序设置。
我正在尝试使用下载settings.json文件。请找到下面的结果,并帮助我。
Using HTTP数据源:在前面获取身份验证错误。现在该问题已经解决,但无法下载该文件或提取文件内容。
Using外部数据源:我创建了一个名为func_settings.ps1的文件,下面的脚本如下所示。
$personalToken=
我使用Terraform0.14.7部署我的基础设施。由于我使用AWS作为Whook的部署目标,所以我有许多脚本(7个不同的脚本,但一个脚本运行于所有lambdas ~200)来检索有关API和每个lambdas的各种信息(参见本例:)。
为此,我使用了external提供程序,它期望得到一些JSON作为回报。我的各种命令确实返回JSON,但事实是,我的terraform plan -out=terraform.plan失败了,其中的消息是:"Error:命令“env生成无效的JSON: JSON输入的意外结束”。
到目前为止我尝试过的是:
run TF_LOG=TRACE terra
我有一个由“外部数据源”调用的Python程序,在这里解释如下:
代码看起来如下所示:
data "external" "example" {
program = ["python", "${path.module}/example-data-source.py"]
query = {
# arbitrary map from strings to strings, passed
# to the external program as the data query.
id = "abc
我将Terraform AzureRM提供程序从1.44升级到2.23。Terraform版本为0.13.0。有趣的是,现在我尝试运行terraform plan,我得到了多个“状态下的无效资源实例数据”错误。
它们看起来是这样的:
Error: Invalid resource instance data in state
on .terraform\modules\redacted\terraform\modules\keyvault\main.tf line 1:
1: resource "azurerm_key_vault" "keyvault
我正在编写一个简单的azure-pipelines.yml来安装terraform,并在进入terraform应用程序之前做一个手动批准。我得到以下错误:
作业manual_approval:对给定作业目标无效的“0.198.0”版本的步骤引用任务手动验证
这是我的yaml。
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
成功登录后的Terraform计划返回以下错误。不确定为什么Terraform在刷新状态时会抱怨无效的凭据,即使凭据已成功执行。
terraform plan
`[0m[1mRefreshing Terraform state in-memory prior to plan...[0m The refreshed state will be used to calculate this plan, but will not be persisted to local or remote state storage.
[0m
[31m
[1m[31mError: [0m[0m[1mE