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
feat: Allow existing subnets to be attached to public gateways.<br>* input variable existing_subnet_ids renamed to existing_subnets<br>* type of input changed from list(string) to list(object)<br>* existing subnet object contains ID of subnet and boolean for public gateway attachment (#709)
@@ -158,7 +159,7 @@ To attach access management tags to resources in this module, you need the follo
158
159
| <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 |
159
160
| <aname="input_existing_dns_instance_id"></a> [existing\_dns\_instance\_id](#input\_existing\_dns\_instance\_id)| Id of an existing dns instance in which the custom resolver is created. Only relevant if enable\_hub is set to true. |`string`|`null`| no |
160
161
| <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 |
161
-
| <aname="input_existing_subnet_ids"></a> [existing\_subnet\_ids](#input\_existing\_subnet\_ids)| The IDs of the existing subnets. Required if 'create\_subnets' is false. |`list(string)`|`null`| no |
162
+
| <aname="input_existing_subnets"></a> [existing\_subnets](#input\_existing\_subnets)| The detail of the existing subnets and required mappings to other resources. Required if 'create\_subnets' is false. |<pre>list(object({<br> id = string<br> public_gateway = optional(bool, false)<br> }))</pre> |`[]`| no |
162
163
| <aname="input_existing_vpc_id"></a> [existing\_vpc\_id](#input\_existing\_vpc\_id)| The ID of the existing vpc. Required if 'create\_vpc' is false. |`string`|`null`| no |
163
164
| <aname="input_hub_vpc_crn"></a> [hub\_vpc\_crn](#input\_hub\_vpc\_crn)| Indicates the crn of the hub VPC for DNS resolution. See https://cloud.ibm.com/docs/vpc?topic=vpc-hub-spoke-model. Mutually exclusive with hub\_vpc\_id. |`string`|`null`| no |
164
165
| <aname="input_hub_vpc_id"></a> [hub\_vpc\_id](#input\_hub\_vpc\_id)| Indicates the id of the hub VPC for DNS resolution. See https://cloud.ibm.com/docs/vpc?topic=vpc-hub-spoke-model. Mutually exclusive with hub\_vpc\_crn. |`string`|`null`| no |
Copy file name to clipboardExpand all lines: main.tf
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,7 @@ locals {
10
10
validate_existing_vpc_id=!var.create_vpc&& var.existing_vpc_id==null?tobool("If var.create_vpc is false, then provide a value for var.existing_vpc_id to create vpc.") :true
11
11
12
12
# tflint-ignore: terraform_unused_declarations
13
-
validate_existing_subnet_id=!var.create_subnets&& var.existing_subnet_ids==null?tobool("If var.create_subnet is false, then provide a value for var.existing_subnet_ids to create subnets.") :true
14
-
13
+
validate_existing_subnet_id=!var.create_subnets&&length(var.existing_subnets) ==0?tobool("If var.create_subnet is false, then provide a value for var.existing_subnets to create subnets.") :true
15
14
# tflint-ignore: terraform_unused_declarations
16
15
validate_existing_vpc_and_subnet=var.create_vpc==true&& var.create_subnets==false?tobool("If user is not providing a vpc then they should also not be providing a subnet") :true
0 commit comments