tfwriter

Terraform HCL code generator.

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

aviatrix_datadog_agent

back

Index

Terraform

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

top

Example Usage

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

  # api_key - (required) is a type of string
  api_key = null
  # excluded_gateways - (optional) is a type of set of string
  excluded_gateways = []
  # metrics_only - (optional) is a type of bool
  metrics_only = null
  # site - (optional) is a type of string
  site = null
}

top

Variables

variable "api_key" {
  description = "(required) - API key."
  type        = string
}

variable "excluded_gateways" {
  description = "(optional) - List of excluded gateways."
  type        = set(string)
  default     = null
}

variable "metrics_only" {
  description = "(optional) - Only export metrics without exporting logs."
  type        = bool
  default     = null
}

variable "site" {
  description = "(optional) - Site preference."
  type        = string
  default     = null
}

top

Resource

resource "aviatrix_datadog_agent" "this" {
  # api_key - (required) is a type of string
  api_key = var.api_key
  # excluded_gateways - (optional) is a type of set of string
  excluded_gateways = var.excluded_gateways
  # metrics_only - (optional) is a type of bool
  metrics_only = var.metrics_only
  # site - (optional) is a type of string
  site = var.site
}

top

Outputs

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

output "status" {
  description = "returns a string"
  value       = aviatrix_datadog_agent.this.status
}

output "this" {
  value = aviatrix_datadog_agent.this
}

top