vpc-subnets

cloud-native-toolkit/vpc-subnets/ibm

Terraform Module HCL IBM

Module to provision subnets in a VPC instance

Install
module "vpc-subnets" {
source = "cloud-native-toolkit/vpc-subnets/ibm"
version = "1.14.0"
}
plain text: /constructs/tfmod-cloud-native-toolkit-vpc-subnets-ibm/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (13)
NameTypeDescriptionDefault
resource_group_namestringThe name of the IBM Cloud resource group where the VPC has been provisioned. required
regionstringThe IBM Cloud region where the cluster will be/has been installed. required
vpc_namestringThe name of the vpc instance required
zone_offsetnumberThe offset for the zone where the subnet should be created. The default offset i0
gatewayslist(object({id = string, zoneList of gateway ids and zones[]
ipv4_address_countnumberThe size of the ipv4 cidr block that should be allocated to the subnet. If {ipv4256
provisionboolFlag indicating that the subnet should be provisioned. If 'false' then the subnetrue
acl_ruleslist(object({ name=stringList of rules to set on the subnet access control list[]
labelstringLabel for the subnets created"default"
ipv4_cidr_blockslist(string)List of ipv4 cidr blocks for the subnets that will be created (e.g. ['10.10.10.0[]
tagslist(string)Tags that should be added to the instance[]
common_tagslist(string)Common tags that should be added to the instance[]
_countnumberThe number of subnets that should be provisioned3
Outputs (7)
ids — The ids of the created subnets
names — The ids of the created subnets
subnets — The subnets that were created
acl_id — The id of the network acl for the subnets
vpc_name — The name of the VPC where the subnets were provisioned
vpc_id — The id of the VPC where the subnets were provisioned
count — The number of subnets created
Resources (4)
ibm_is_network_aclibm_is_network_acl_ruleibm_is_subnetnull_resource
Details
FrameworkTerraform Module
LanguageHCL
Version1.14.0
Cloud IBM
★ Stars0
Forks8
Total downloads3.4k
Inputs13
Outputs7
Resources4
LicenseApache-2.0
Namespacecloud-native-toolkit
Updated