terraform-provider-nds

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 6 Imported by: 0

README

Network Data Source Terraform Provider

Tests golangci-lint release

Network Data Source Terraform Provider enables users to query network data sources.

Documentation

Full documentation is available on the Terraform registry website:
https://registry.terraform.io/providers/peknur/nds/latest/docs

Example usage

terraform {
  required_providers {
    nds = {
      source  = "peknur/nds"
      version = ">= 0.1.0"
    }
  }
}

# Use custom resolver to get public IP address
data "nds_nslookup_ip" "my_ip" {
  name = "myip.opendns.com"
  resolver {
    addr = "208.67.222.222" # resolver1.opendns.com
  }
}

data "nds_nslookup_ptr" "my_ptr" {
  name = data.nds_nslookup_ip.my_ip.data[0]
}

output "my_ip_reverse_name" {
  value = data.nds_nslookup_ptr.my_ptr.data
}

# terraform output 
# my_ip_reverse_name = tolist([
#  "a.b.c.example.com.",
# ])

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL