vpc-subnets
cloud-native-toolkit/vpc-subnets/ibm
Module to provision subnets in a VPC instance
IBM VPC Subnets Terraform module to provision subnets for an existing VPC. The number of subnets created depends on the value provided for _count. The created subnets will be named after the vpc with a suffix based on the value provided for label. Optionally, if values are provided for gateways then the subnets will be created with a public gateway. Software dependencies The module depends on the following software components: Command-line tools - terraform - v13 - kubectl Terraform providers - IBM Cloud provider >= 1.22.0 Module dependencies This module makes use of the output from other modules: - Resource Group - github.com/terraform-ibm-modules/terraform-ibm-toolkit-resource-group - VPC - github.com/terraform-ibm-modules/terraform-ibm-toolkit-vpc - Gateway - github.com/terraform-ibm-mo
| Name | Type | Description | Default |
|---|---|---|---|
| resource_group_name | string | The name of the IBM Cloud resource group where the VPC has been provisioned. | required |
| region | string | The IBM Cloud region where the cluster will be/has been installed. | required |
| vpc_name | string | The name of the vpc instance | required |
| zone_offset | number | The offset for the zone where the subnet should be created. The default offset i | 0 |
| gateways | list(object({id = string, zone | List of gateway ids and zones | [] |
| ipv4_address_count | number | The size of the ipv4 cidr block that should be allocated to the subnet. If {ipv4 | 256 |
| provision | bool | Flag indicating that the subnet should be provisioned. If 'false' then the subne | true |
| acl_rules | list(object({ name=string | List of rules to set on the subnet access control list | [] |
| label | string | Label for the subnets created | "default" |
| ipv4_cidr_blocks | list(string) | List of ipv4 cidr blocks for the subnets that will be created (e.g. ['10.10.10.0 | [] |
| tags | list(string) | Tags that should be added to the instance | [] |
| common_tags | list(string) | Common tags that should be added to the instance | [] |
| _count | number | The number of subnets that should be provisioned | 3 |
ids — The ids of the created subnetsnames — The ids of the created subnetssubnets — The subnets that were createdacl_id — The id of the network acl for the subnetsvpc_name — The name of the VPC where the subnets were provisionedvpc_id — The id of the VPC where the subnets were provisionedcount — The number of subnets created