
[英]error: instance type null does not match any allowed primitive type
我正在尝试使用以下 yaml 文件 (terraform) 在 gcp 中创建计算实例 但收到以下错误 所以帮我解决这个错误 ...
[英]error: instance type null does not match any allowed primitive type
我正在尝试使用以下 yaml 文件 (terraform) 在 gcp 中创建计算实例 但收到以下错误 所以帮我解决这个错误 ...
[英]List & String Conversion Issue for Data sources
我在这个问题上陷入了困境。 需要为 azure_windows_virtual_machine 提供一个网络接口 ID 列表。 网络接口是使用单独的资源块创建的。 在我对 windows 虚拟机的变量定义中,我为 said.network 接口的名称 [s] 提供了一个参数,以便我们可以正确地将我们 ...
[英]How can I create terraform aws_security_group with multiple eip and ec2 instances?
我正在尝试根据以下代码创建实例 - 并出现以下错误 - 错误:创建安全组(first-security-group-created-by-terraform):InvalidGroup.Duplicate:VPC“vpc-0fb3457c89d86e916”的安全组“first-security- ...
[英]Issue with Terraform
我收到错误:托管资源“azurerm_sql_server”“sqlserver1251”尚未在根模块中声明 2023-01-14T12:48:30.2495026Z。 有人可以帮我吗? ...
[英]Terraform data source List and Filter Existing Azure Resource Group
我想在 azure 中列出 terraform 的现有资源组,并根据它们的某些标签过滤它们,这可能吗? 我只能使用下面的资源组数据源输入单个资源组的名称: 我想要这样的东西: 我不介意 powershell provisioner 是否用于此或任何其他方法,只要它返回 output 中的过滤资源组 ...
[英]Error when appending multiple key_vault_access_policy in a key_vault resource - resource needs to be imported into the State - Terraform / Azure
我正在尝试使用以下代码部署包含两个 key_vault_access_policy 的 key_vault 资源: 使用在另一个文件中创建的资源: 我使用命令“terraform apply -var-file="variables.tfvars"" 得到的错误如下: 你能帮我解决这个问题吗? 只 ...
[英]Azure Storage (Blob, Queue, Table) Logging in Terraform with for_each and locals
我正在编写 Terraform 代码以启用对 Azure 存储 Blob、队列和表类型的日志记录。 使用我当前的代码,我需要为每种存储类型获取数据,例如 Blob,并使用它来获取它的日志和指标详细信息。 有什么方法可以使用 for_each 和 locals 来避免为每种存储类型重复相同的代码块。 ...
[英]Terraform for_each on an indexed resource
我有一组资源需要根据 var service_count创建,它定义了将部署的模块(和相关资源)的数量。 我需要为每个创建的模块提供aws_acm_certificate和aws_route53_record 。 换句话说,如果var.service_count为0 ,则不应创建以下任何资源。 如 ...
[英]How to use for_each referencing to another resource in Terraform?
我想创建一个分配给所有 public_su.net id 和 eip nate id 的 nat_gateway 但是 terraform 是错误的 │ │ each.key 是“5” ...
[英]Terraform: How to set the Amazon Athena "Query result location" with Terraform
如果有人知道如何通过 Terraform 设置 Athena 查询结果位置,请帮助我我的代码如下所示 ...
[英]Terraform missing when value should be passed in from tfvar file
我有一个terraform项目,其中包含一个主模块和一个子模块。 像这样: 两个variables.tf文件都定义了这个变量: 顶层main.tf定义如下: 子模块main.tf有这个: 但是,运行时会抛出此错误: terrform apply命令之前的文件转储成功转储了tfvars文件的内容,因 ...
[英]Creating data lake causes error code 403 or 409. checking for existence of existing File System and then never finds it in azure terraform
我正在处理一些 terraform 代码,我已经设置了一个模块,它是一个存储帐户和数据湖模块。 我将其调用到我的主要回购协议中进行处理。 问题是我在不同的运行中不断收到各种错误代码错误:检查是否存在现有文件系统“examplenameofdl”(帐户“sadl123”):datalakestore. ...
[英]How to ignore changes of specific annotation with Terraform CDK
使用ignoreChanges配置忽略 kube.netes 部署的特定注释的更改的正确方法是什么? 我的一个 kube.netes 部署有以下注释,由 CRD 基于一些外部 state 更改自动注入: 我希望 terraform 在看到此注释发生更改时不触发重新部署。 我怀疑类似下面的内容是正确的 ...
[英]Terraform error A value of type string cannot be used as the collection in a 'for' expression
我创建了一个模块来添加 AWS.APIGateway 路由和授权者。 根据 tfsvars 文件中的变量数量调用该模块。 此变量传递给模块以将路由名称创建为 extprovider。 我需要使用这个变量和 append 作为它的后缀,这样我就可以向授权者添加多个 clientids(受众)。 我的代 ...
[英]Error Key Vault object_id is an invalid UUID - Terraform/Azure
我正在 Terraform 中部署一个 Azure 应用程序网关,我想将我的 SSL 私有证书存储在 Inte.net 和我的 App-gtw 之间的 Azure Key Vault 中。 省略了应用程序网关模块中无用信息的代码是: key_vault 资源是: key_vault_certi ...
[英]Error: Failed to read Ingress '/' because: the server could not find the requested resource (get ingresses.extensions
嗨,无论我如何使用 alb controller 为 AWS 设置我的入口,在 Kube.netes 1.22 上运行,我都会不断收到以下错误 我的入口看起来像这样: 错误来自的特定块 controller 中没有错误,服务正在运行,入口已启动并且存在负载均衡器。 我错过了什么? ...
[英]how to dynamically get the server IP of rds instance created in terraform
我正在使用源terraform-aws-modules/rds/aws中的 terraform 模块在 terraform 中创建一个基于 postgresql 的 rds 实例。作为该项目的一部分,我还希望在具有特定权限的 postgresql 数据库中创建角色。 我知道有一个 postresq ...
[英]Terraform Alerts for Azure Functions
我正在尝试研究是否可以通过 terraform 为 azure 函数创建警报。 我的目标是创建一个通用规则,可以为正在进行的功能设置,如果自动/定时 function 失败 x 次,它会提醒我们 ...
[英]How to make network endpoint groups disappear automatically
在 GCP 中,我有一个配置了工作负载的 GKE。 我的服务定义具有以下注释,它会自动为我创建 .network 端点组: 然后我可以将其附加到后端负载均衡器服务,并且一切正常。 但是,如果我删除底层服务/部署/pods,这些网络端点组不应该消失吗? 在我删除 kube.netes 级别的所有内容后 ...
[英]Terraform/cloudposse/codebuild
在执行 $Terraform apply 时出现此错误。 如何解决? 我在我的 cloudposse/codebuild/aws 模块中使用了 cloudposse/cloudwatch_logs 模块,并希望将日志存储在 cloudwatch 中。 ...