azure - Terraform 如何跳过 1 个工作区的参数

标签 azure terraform terraform-provider-azure azure-rm

是否可以在 terraform 中跳过 1 个工作区的 1 个参数?

resource "azurerm_application_gateway" "appgw" {
  name                = var.appgw
  resource_group_name = var.resource_group
  location            = var.location
  **zones = var.aks_zones**
  sku {
    name = var.app_gateway_sku
    tier = var.app_gateway_tier
  }   

我正在不支持可用区的区域中设置灾难恢复环境,因此对于传递“Zones”参数的脚本,仅需要为一个工作区跳过。这可能吗?

最佳答案

为了解决此问题,我向我的 AppGW IP 地址 block 添加了 availability_zone = "No-Zone" 参数。

关于azure - Terraform 如何跳过 1 个工作区的参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69676588/

相关文章:

azure - 如何在 azure synapse Analytics 中设置两个触发器管道之间的依赖关系

azure - 无法使用 terraform 在 Azure 中创建 EventHub 授权规则

terraform - 使用 terraform 为现有虚拟机启用 Azure Monitor

azure - Azure 应用服务上带有 OWIN 'SystemWeb' 的 Web API 应用程序

Azure KeyVault secret 值在启动期间在 IConfiguration 中不可用

azure - 有没有办法从 nginx-kubernetes 入口提供外部 URL?

google-cloud-platform - Terraform - 在创建存储桶的同时将多个文件复制到存储桶

terraform - terraform 文件中本地人的引用 map

git - .gitignore 不忽略 tfvars 和 .terraform 目录

azure - 使用多级 map 在 terraform 中循环