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
@@ -137,6 +139,8 @@ To attach access management tags to resources in this module, you need the follo
137
139
| <aname="input_enable_vpc_flow_logs"></a> [enable\_vpc\_flow\_logs](#input\_enable\_vpc\_flow\_logs)| Flag to enable vpc flow logs. If true, flow log collector will be created |`bool`|`false`| no |
138
140
| <aname="input_existing_cos_instance_guid"></a> [existing\_cos\_instance\_guid](#input\_existing\_cos\_instance\_guid)| GUID of the COS instance to create Flow log collector |`string`|`null`| no |
139
141
| <aname="input_existing_storage_bucket_name"></a> [existing\_storage\_bucket\_name](#input\_existing\_storage\_bucket\_name)| Name of the COS bucket to collect VPC flow logs |`string`|`null`| no |
142
+
| <aname="input_hub_vpc_crn"></a> [hub\_vpc\_crn](#input\_hub\_vpc\_crn)| Hub VPC CRN |`string`|`null`| no |
143
+
| <aname="input_hub_vpc_id"></a> [hub\_vpc\_id](#input\_hub\_vpc\_id)| Hub VPC ID |`string`|`null`| no |
140
144
| <aname="input_ibmcloud_api_visibility"></a> [ibmcloud\_api\_visibility](#input\_ibmcloud\_api\_visibility)| IBM Cloud API visibility used by scripts run in this module. Must be 'public', 'private', or 'public-and-private' |`string`|`"public"`| no |
141
145
| <aname="input_is_flow_log_collector_active"></a> [is\_flow\_log\_collector\_active](#input\_is\_flow\_log\_collector\_active)| Indicates whether the collector is active. If false, this collector is created in inactive mode. |`bool`|`true`| no |
142
146
| <aname="input_name"></a> [name](#input\_name)| Name for VPC |`string`| n/a | yes |
Copy file name to clipboardExpand all lines: main.tf
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,9 @@ locals {
5
5
# input variable validation
6
6
# tflint-ignore: terraform_unused_declarations
7
7
validate_default_secgroup_rules=var.clean_default_sg_acl&& (var.security_group_rules!=null&&length(var.security_group_rules) >0) ?tobool("var.clean_default_sg_acl is true and var.security_group_rules are not empty, which are in direct conflict of each other. If you would like the default VPC Security Group to be empty, you must remove default rules from var.security_group_rules.") :true
8
+
9
+
# tflint-ignore: terraform_unused_declarations
10
+
validate_hub_vpc_input=(var.hub_vpc_id!=null&& var.hub_vpc_crn!=null) ?tobool("var.hub_vpc_id and var.hub_vpc_crn are mutually exclusive. Hence cannot have values at the same time.") :true
0 commit comments