Skip to content

Terraform module for creating Load Balancer on the DigitalOcean cloud.

License

Notifications You must be signed in to change notification settings

opsd-io/terraform-module-digitalocean-load-balancer

Repository files navigation

OPSd - the unique and effortless way of managing cloud infrastructure.

Meet OPSd. The unique and effortless way of managing cloud infrastructure.

terraform-module-template

Introduction

What does the module provide?

Usage

module "module_name" {
  source  = "github.com/opsd-io/module_name?ref=v0.0.1"

  # Variables
  variable_1 = "foo"
  variable_2 = "bar"
}

IMPORTANT: Make sure not to pin to master because there may be breaking changes between releases.

Requirements

Name Version
terraform >= 1.5.7
digitalocean >= 2.34.1

Providers

Name Version
digitalocean >= 2.34.1

Modules

No modules.

Resources

Name Type
digitalocean_loadbalancer.main resource

Inputs

Name Description Type Default Required
droplet_ids A list of the IDs of each droplet to be attached to the Load Balancer. list(string) [] no
droplet_tag The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer. string null no
firewall_allow List of objects that represent the configuration of firewall allow variables. list(string) [] no
firewall_deny List of objects that represent the configuration of firewall deny variables. list(string) [] no
forwarding_rules List of objects for forwarding_rule. list(any) [] no
healthcheck List of objects that represent the configuration of each healthcheck. list(any) [] no
name The Load Balancer name. string n/a yes
region The region to start in. string n/a yes
size The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large. Defaults to lb-small. Only one of size or size_unit may be provided. string "lb-small" no
size_unit The size of the Load Balancer. It must be in the range (1, 100). Defaults to 1. Only one of size or size_unit may be provided. number 1 no
vpc_uuid The ID of the VPC where the load balancer will be located. string null no

Outputs

Name Description
id The ID of the Load Balancer.
ip The ip of the Load Balancer.
urn The urn for the Load Balancer.

Examples of usage

Do you want to see how the module works? See all the usage examples.

Related modules

The list of related modules (if present).

Contributing

If you are interested in contributing to the project, see see our guide.

Support

If you have a problem with the module or want to propose a new feature, you can report it via the project's (Github) issue tracker.

If you want to discuss something in person, you can join our community on Slack.

License

Apache License 2.0

About

Terraform module for creating Load Balancer on the DigitalOcean cloud.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages