Creates a zone for Context Based Restrictions or updates addresses in an existing zone.
# 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"}]
}
No modules.
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 |