vpc-vsi

cloud-native-toolkit/vpc-vsi/ibm

Terraform Module HCL IBM

Module to provision a Virtual Server instance in an IBM Cloud Virtual Private Cloud instance

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

VPC Virtual Server instance Module to provision a Virtual Server Instance (VSI) within an existing Virtual Private Cloud instance. The VSI can optionally be configured with Flow Logs to satisfy requirements imposed by security contraints. Software dependencies The module depends on the following software components: Command-line tools - terraform - v13 Terraform providers - IBM Cloud provider >= 1.23.0 Module dependencies 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.region } module "vsi" { source = "github.com/cloud-native-toolkit/terraform-ibm-vpc-vsi.git" resource_group_id = module.resource_group.id r

Inputs (22)
NameTypeDescriptionDefault
vpc_namestringThe name of the vpc instance required
vpc_subnet_countnumberNumber of vpc subnets required
ibmcloud_api_keystringThe IBM Cloud api token required
resource_group_idstringThe id 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_subnetslist(object({ label = striList of subnets with labels required
kms_enabledboolFlag indicating that the volumes should be encrypted using a KMS.false
image_namestringThe name of the image to use for the virtual server"ibm-ubuntu-18-04-6-minimal-amd64-3"
allow_ssh_fromstringAn IP address, a CIDR block, or a single security group identifier to allow inco""
create_public_ipboolSet whether to allocate a public IP address for the virtual server instancefalse
tagslist(string)Tags that should be added to the instance[]
kms_key_crnstringThe crn of the root key in the kms instance. Required if kms_enabled is true""
security_group_ruleslist(object({ name=stringList of security group rules to set on the bastion security group in addition to[]
profile_namestringInstance profile to use for the bastion instance"cx2-2x4"
ssh_key_idstringSSH key ID to inject into the virtual server instance""
init_scriptstringScript to run during the instance initialization. Defaults to an Ubuntu specific""
auto_delete_volumeboolFlag indicating that any attached volumes should be deleted when the instance istrue
target_network_rangestringThe ip address range that should be used for the network acl rules generated fro"0.0.0.0/0"
labelstringThe label for the server instance"server"
allow_deprecated_imageboolFlag indicating that deprecated images should be allowed for use in the Virtual true
base_security_groupstringThe id of the base security group to use for the VSI instance. If not provided tnull
acl_ruleslist(object({ name=stringList of rules to set on the subnet access control list[]
Outputs (13)
service — The name of the service for the instance
type — The type of the service for the instance
label — The label used for the instance
security_group_id — The id of the security group that was created
security_group — The security group that was created
names — The instance name
public_ips — The public ips of the instances
location — The instance location
network_interface_ids
count — The number of vsi instances created. Should be the same as length(names)
ids — The instance id
crns — The crn of the instance
private_ips — The private ips of the instances
Resources (6)
ibm_is_floating_ipibm_is_instanceibm_is_security_groupibm_is_security_group_ruleibm_resource_tagnull_resource
Topics & Tags
terraform
Details
FrameworkTerraform Module
LanguageHCL
Version1.12.3
Cloud IBM
★ Stars0
Forks7
Total downloads118
Inputs22
Outputs13
Resources6
Namespacecloud-native-toolkit
Updated