Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.27 KB

File metadata and controls

25 lines (18 loc) · 1.27 KB

Load balancer (Layer 7)

This module will deploy a Load Balancer (L7). The LB can be public or private (is_private variable). The LB will be attached to the instances in a instance pool (instance_pool_id variable). Also this module will deploy one Network security group that will be attached to the Load Balancer, this NSG will allow traffic on port 80 only to the LB.

Requirements

  • One vcn with a public or private subnet (simple-vcn or private-vcn module)

Module variables

Var Required Desc
region yes set the correct OCI region based on your needs
compartment_ocid yes Set the correct compartment ocid. See how to find the compartment ocid
vcn_id yes The VCN OCID
private_subnet_id yes Private subnet OCID
public_subnet_id yes Public subnet OCID
instance_pool_size yes Instance pool size
instance_pool_id yes Instance pool ocid OCID
is_private no Bool value. If true the LB will be a private LB (no public ip) Default: false
lb_shape no Load balancer shape. Default: flexible

Output

lb_ip, LB public or private ip address