vpc
cloud-native-toolkit/vpc/ibm
Terraform module to provision vpc resources
IBM Cloud VPC module Provisions a VPC instance and related resources. The full list of resources provisioned is as follows: - VPC instance - VPC network acl - VPC security group rules - ping - icmp type 8 - public dns - 161.26.0.10 and 161.26.0.11 - private dns - 161.26.0.7 and 161.26.0.8 Software dependencies The module depends on the following software components: Command-line tools - terraform - v0.15 Terraform providers - IBM Cloud provider >= 1.51.0 Module dependencies - Resource group - github.com/cloud-native-toolkit/terraform-ibm-resource-group.git Example usage Refer test cases for more details ``hcl-terraform terraform { required_providers { ibm = { source = "ibm-cloud/ibm" } } required_version = ">= 0.13" } provider "ibm" { ibmcloud_api_key = var.ibmcloud_api_key region = var.re
| Name | Type | Description | Default |
|---|---|---|---|
| resource_group_name | string | The name of the IBM Cloud resource group where the VPC instance will be created. | required |
| region | string | The IBM Cloud region where the cluster will be/has been installed. | required |
| name_prefix | string | The name of the vpc resource | "" |
| provision | bool | Flag indicating that the instance should be provisioned. If false then an existi | true |
| address_prefix_count | number | The number of ipv4_cidr_blocks | 0 |
| address_prefixes | list(string) | List of ipv4 cidr blocks for the address prefixes (e.g. ['10.10.10.0/24']). If y | [] |
| tags | list(string) | Tags that should be added to the instance | [] |
| name | string | The name of the vpc instance | "" |
| base_security_group_name | string | The name of the base security group. If not provided the name will be based on t | "" |
| internal_cidr | string | The cidr range of the internal network | "10.0.0.0/8" |
| common_tags | list(string) | Common tags that should be added to the instance | [] |
name — The name of the vpc instanceid — The id of the vpc instanceacl_id — The id of the network acladdresses — The ip address ranges for the VPCbase_security_group — The id of the base security group to be shared by other resources. The base group is different from crn — The CRN for the vpc instancecount — The number of VPCs created by this module. Always set to 1names — The name of the vpc instanceids — The id of the vpc instance