Skip to content

Latest commit

 

History

History
140 lines (112 loc) · 2.92 KB

azurestack_lb_nat_pool.md

File metadata and controls

140 lines (112 loc) · 2.92 KB

azurestack_lb_nat_pool

back

Index

Terraform

terraform {
  required_providers {
    azurestack = ">= 0.9.0"
  }
}

top

Example Usage

module "azurestack_lb_nat_pool" {
  source = "./modules/azurestack/r/azurestack_lb_nat_pool"

  # backend_port - (required) is a type of number
  backend_port = null
  # frontend_ip_configuration_name - (required) is a type of string
  frontend_ip_configuration_name = null
  # frontend_port_end - (required) is a type of number
  frontend_port_end = null
  # frontend_port_start - (required) is a type of number
  frontend_port_start = null
  # loadbalancer_id - (required) is a type of string
  loadbalancer_id = null
  # name - (required) is a type of string
  name = null
  # protocol - (required) is a type of string
  protocol = null
  # resource_group_name - (required) is a type of string
  resource_group_name = null
}

top

Variables

variable "backend_port" {
  description = "(required)"
  type        = number
}

variable "frontend_ip_configuration_name" {
  description = "(required)"
  type        = string
}

variable "frontend_port_end" {
  description = "(required)"
  type        = number
}

variable "frontend_port_start" {
  description = "(required)"
  type        = number
}

variable "loadbalancer_id" {
  description = "(required)"
  type        = string
}

variable "name" {
  description = "(required)"
  type        = string
}

variable "protocol" {
  description = "(required)"
  type        = string
}

variable "resource_group_name" {
  description = "(required)"
  type        = string
}

top

Resource

resource "azurestack_lb_nat_pool" "this" {
  # backend_port - (required) is a type of number
  backend_port = var.backend_port
  # frontend_ip_configuration_name - (required) is a type of string
  frontend_ip_configuration_name = var.frontend_ip_configuration_name
  # frontend_port_end - (required) is a type of number
  frontend_port_end = var.frontend_port_end
  # frontend_port_start - (required) is a type of number
  frontend_port_start = var.frontend_port_start
  # loadbalancer_id - (required) is a type of string
  loadbalancer_id = var.loadbalancer_id
  # name - (required) is a type of string
  name = var.name
  # protocol - (required) is a type of string
  protocol = var.protocol
  # resource_group_name - (required) is a type of string
  resource_group_name = var.resource_group_name
}

top

Outputs

output "frontend_ip_configuration_id" {
  description = "returns a string"
  value       = azurestack_lb_nat_pool.this.frontend_ip_configuration_id
}

output "id" {
  description = "returns a string"
  value       = azurestack_lb_nat_pool.this.id
}

output "this" {
  value = azurestack_lb_nat_pool.this
}

top