back
terraform {
required_providers {
aviatrix = ">= 2.18.2"
}
}
top
module "aviatrix_periodic_ping" {
source = "./modules/aviatrix/r/aviatrix_periodic_ping"
# gw_name - (required) is a type of string
gw_name = null
# interval - (required) is a type of number
interval = null
# ip_address - (required) is a type of string
ip_address = null
}
top
variable "gw_name" {
description = "(required) - Name of gateway."
type = string
}
variable "interval" {
description = "(required) - Interval between pings in seconds."
type = number
}
variable "ip_address" {
description = "(required) - IP Address to ping."
type = string
}
top
resource "aviatrix_periodic_ping" "this" {
# gw_name - (required) is a type of string
gw_name = var.gw_name
# interval - (required) is a type of number
interval = var.interval
# ip_address - (required) is a type of string
ip_address = var.ip_address
}
top
output "id" {
description = "returns a string"
value = aviatrix_periodic_ping.this.id
}
output "this" {
value = aviatrix_periodic_ping.this
}
top