Skip to content

Latest commit

 

History

History

cbr-zone-module

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

CBR Zone Module

Creates a zone for Context Based Restrictions or updates addresses in an existing zone.

Usage

# Creates a new zone
module "ibm_cbr" "zone" {
  source           = "terraform-ibm-modules/cbr/ibm//modules/cbr-zone-module"
  version          = "X.X.X" # Replace "X.X.X" with a release version to lock into a specific release
  name             = "zone_for_pg_access"
  account_id       = "defc0df06b644a9cabc6e44f55b3880s"
  zone_description = "Zone created from terraform"
  addresses        = [{type  = "vpc",value = "vpc_crn"}]
}
# Updates an existing zone with new addresses
module "ibm_cbr" "zone" {
  source           = "terraform-ibm-modules/cbr/ibm//modules/cbr-zone-module"
  version          = "X.X.X" # Replace "X.X.X" with a release version to lock into a specific
  use_existing_cbr_zone = true
  zone_id          = "7714beceb512dffef0746cd0e4105309" # pragma: allowlist secret
  addresses        = [{type  = "vpc",value = "vpc_crn"}]
}

Requirements

Name Version
terraform >= 1.3.0
ibm >= 1.70.0, < 2.0.0

Modules

No modules.

Resources

Name Type
ibm_cbr_zone.cbr_zone resource
ibm_cbr_zone_addresses.update_cbr_zone_address resource

Inputs

Name Description Type Default Required
account_id (Optional, String) The id of the account owning this zone string null no
addresses (List) The list of addresses in the zone
list(object({
type = optional(string)
value = optional(string)
ref = optional(object({
account_id = string
location = optional(string)
service_instance = optional(string)
service_name = optional(string)
service_type = optional(string)
}))
}))
[] no
excluded_addresses (Optional, List) The list of excluded addresses in the zone
list(object({
type = optional(string)
value = optional(string)
}))
[] no
existing_zone_id Provide an existing CBR zone ID string null no
name (Optional, String) The name of the zone string null no
use_existing_cbr_zone Whether to update CBR zone using existing zone ID. This allows the inclusion of one or more addresses in an existing zone bool false no
zone_description (Optional, String) The description of the zone string null no

Outputs

Name Description
zone_crn CBR zone crn
zone_description CBR zone description
zone_href CBR zone link
zone_id CBR zone id
zone_names CBR zone name