You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aname="input_cbr_rules"></a> [cbr\_rules](#input\_cbr\_rules)| The list of context-based restrictions rules to create. | <pre>list(object({<br/> description = string<br/> account_id = string<br/> rule_contexts = list(object({<br/> attributes = optional(list(object({<br/> name = string<br/> value = string<br/> }))) }))<br/> enforcement_mode = string<br/> operations = optional(list(object({<br/> api_types = list(object({<br/> api_type_id = string<br/> }))<br/> })))<br/> }))</pre> |`[]`| no |
160
161
| <aname="input_config_maps"></a> [config\_maps](#input\_config\_maps)| A map of code engine config maps to be created. | <pre>map(object({<br/> data = map(string)<br/> }))</pre> |`{}`| no |
161
162
| <aname="input_domain_mappings"></a> [domain\_mappings](#input\_domain\_mappings)| A map of code engine domain mappings to be created. | <pre>map(object({<br/> tls_secret = string # pragma: allowlist secret<br/> components = list(object({<br/> name = string<br/> resource_type = string<br/> }))<br/> }))</pre> |`{}`| no |
162
163
| <aname="input_existing_project_id"></a> [existing\_project\_id](#input\_existing\_project\_id)| The ID of the existing project to which code engine resources will be added. It is required if var.project\_name is null. |`string`|`null`| no |
| <aname="input_cbr_rules"></a> [cbr\_rules](#input\_cbr\_rules)| The list of context-based restrictions rules to create. | <pre>list(object({<br/> description = string<br/> account_id = string<br/> rule_contexts = list(object({<br/> attributes = optional(list(object({<br/> name = string<br/> value = string<br/> }))) }))<br/> enforcement_mode = string<br/> operations = optional(list(object({<br/> api_types = list(object({<br/> api_type_id = string<br/> }))<br/> })))<br/> }))</pre> |`[]`| no |
53
56
| <aname="input_name"></a> [name](#input\_name)| The name of the project. |`string`| n/a | yes |
54
57
| <aname="input_resource_group_id"></a> [resource\_group\_id](#input\_resource\_group\_id)| ID of resource group to use when creating resources |`string`| n/a | yes |
# Configuring complex inputs for Code Engine in IBM Cloud projects
2
+
3
+
Several optional input variables in the IBM Cloud [Code Engine deployable architecture](https://cloud.ibm.com/catalog#deployable_architecture) use complex object types. You specify these inputs when you configure deployable architecture.
4
+
5
+
* Context-Based Restrictions Rules (`cbr_rules`)
6
+
7
+
8
+
## Rules For Context-Based Restrictions <aname="cbr_rules"></a>
9
+
10
+
The `cbr_rules` input variable allows you to provide a rule for the target service to enforce access restrictions for the service based on the context of access requests. Contexts are criteria that include the network location of access requests, the endpoint type from where the request is sent, etc.
11
+
12
+
- Variable name: `cbr_rules`.
13
+
- Type: A list of objects. Allows only one object representing a rule for the target service
14
+
- Default value: An empty list (`[]`).
15
+
16
+
### Options for cbr_rules
17
+
18
+
-`description` (required): The description of the rule to create.
19
+
-`account_id` (required): The IBM Cloud Account ID
20
+
-`rule_contexts` (required): (List) The contexts the rule applies to
0 commit comments