Post

Check terrafrom variable present in any environment

Check terrafrom variable present in any environment

1
2
3
4
5
6
7
8
9
10
11
12
13
14
module "wiz" {
  source  = "localterraform.com/modules/wizz/gcp"
  version = "0.1.1"
  for_each = can(var.wizz_settings) && var.wizz_settings.wiz_managed_identity_external_id != null ? {
    for k, v in var.wizz_settings : k => v
  } : {}

  org_id                           = var.organization.id
  wiz_managed_identity_external_id = each.value
  serverless_scanning              = true
  data_scanning                    = true
  enable_shadow_data               = false
  forensic                         = false
}
This post is licensed under CC BY 4.0 by the author.