Skip to content

insight-w3f/terraform-polkadot-azure-api-lb

Repository files navigation

terraform-polkadot-azure-api-lb

open-issues open-pr build-status

Features

This module creates the necessary infrastructure for a load balanced endpoint for Polkadot nodes running on Azure.

Terraform Versions

For Terraform v0.12.0+

Usage

resource "azurerm_resource_group" "this" {
  location = "eastus"
  name     = "resource-group-name"
}

module "this" {
  source = "github.com/insight-w3f/terraform-polkadot-azure-api-lb"
  azure_resource_group_name = azurerm_resource_group.this.name   
}

Examples

Known Issues

No issue is creating limit on this module.

Providers

Name Version
azurerm n/a

Inputs

Name Description Type Default Required
azure_resource_group_name Name of Azure Resource Group string n/a yes
network_name The network name, ie kusama / mainnet string "" no
region The Azure region to deploy in string "eastus" no
subnet_id Subnet ID to deploy load balancer into string "" no
tags Tags in the form of key value pairs to associate with resources map(string) {} no
use_external_lb Bool to switch between public (true) or private (false) bool true no

Outputs

Name Description
lb_backend_pool_id n/a
lb_endpoint_ip n/a
lb_frontend_ip_config_name n/a
lb_health_probe_id n/a
lb_id n/a
lb_rpc_rule_id n/a

Testing

This module has been packaged with terratest tests

To run them:

  1. Install Go
  2. Run make test-init from the root of this repo
  3. Run make test again from root

Authors

Module managed by Richard Mah

Credits

License

Apache 2 Licensed. See LICENSE for full details.