tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

aviatrix_device_interface_config

back

Index

Terraform

terraform {
  required_providers {
    aviatrix = ">= 2.18.2"
  }
}

top

Example Usage

module "aviatrix_device_interface_config" {
  source = "./modules/aviatrix/r/aviatrix_device_interface_config"

  # device_name - (required) is a type of string
  device_name = null
  # wan_primary_interface - (required) is a type of string
  wan_primary_interface = null
  # wan_primary_interface_public_ip - (required) is a type of string
  wan_primary_interface_public_ip = null
}

top

Variables

variable "device_name" {
  description = "(required) - Name of device."
  type        = string
}

variable "wan_primary_interface" {
  description = "(required) - Primary WAN interface of the device. For example, 'GigabitEthernet1'."
  type        = string
}

variable "wan_primary_interface_public_ip" {
  description = "(required) - Primary WAN interface public IP address."
  type        = string
}

top

Resource

resource "aviatrix_device_interface_config" "this" {
  # device_name - (required) is a type of string
  device_name = var.device_name
  # wan_primary_interface - (required) is a type of string
  wan_primary_interface = var.wan_primary_interface
  # wan_primary_interface_public_ip - (required) is a type of string
  wan_primary_interface_public_ip = var.wan_primary_interface_public_ip
}

top

Outputs

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

output "this" {
  value = aviatrix_device_interface_config.this
}

top