Skip to content

iits-consulting/terraform-opentelekomcloud-dedicated-loadbalancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dedicated Loadbalancer

A module designed to create and manage a dedicated ELB instance with private and public IP.

Usage example:

module "vpc" {
  source     = "iits-consulting/vpc/opentelekomcloud"

  name       = "${var.context}-${var.stage}-vpc"
  cidr_block = var.vpc_cidr
  subnets = {
    "dmz-subnet" = cidrsubnet(var.vpc_cidr, 1, 0)
  }
  tags = local.tags
}

module "loadbalancer" {
  source             = "iits-consulting/dedicated-loadbalancer/opentelekomcloud"

  availability_zones = var.availability_zones
  name_prefix        = "${var.context}-${var.stage}"
  subnet_id          = module.vpc.subnets["dmz-subnet"].subnet_id
  network_ids        = [module.vpc.subnets["dmz-subnet"].network_id]
  tags               = local.tags
}

Requirements

Name Version
terraform >= 1.4.0
opentelekomcloud ~> 1.32

Providers

Name Version
opentelekomcloud ~> 1.32

Modules

No modules.

Resources

Name Type
opentelekomcloud_lb_loadbalancer_v3.loadbalancer resource
opentelekomcloud_vpc_eip_v1.ingress_eip resource
opentelekomcloud_lb_flavor_v3.layer4_flavor data source
opentelekomcloud_lb_flavor_v3.layer7_flavor data source

Inputs

Name Description Type Default Required
availability_zones Availability zones for the ELB instance. set(string) n/a yes
name_prefix Common prefix for all OTC resource names string n/a yes
network_ids Network IDs to use for loadbalancer backends. Default: <obtained from subnet_id> list(string) n/a yes
subnet_id Subnet where the elastic load balancer will be created. string n/a yes
bandwidth The EIP bandwidth size. The value for a public loadbalancer ranges from 1 to 1000 Mbit/s. 0 disables the EIP, making the loadbalancer private. number 100 no
ip_target_enable Enable using ip as backend feature. bool false no
layer4_flavor Flavor string for layer 4 routing. Default: L4_flavor.elb.s1.small (set to "" explicitly to disable layer 4.) string "L4_flavor.elb.s1.small" no
layer7_flavor Flavor string for layer 7 routing. string "" no
tags Common tag set for project resources map(string) {} no

Outputs

Name Description
elb_id n/a
elb_private_ip n/a
elb_public_ip n/a

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages