github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/powerdns/index.html.markdown (about)

     1  ---
     2  layout: "powerdns"
     3  page_title: "Provider: PowerDNS"
     4  sidebar_current: "docs-powerdns-index"
     5  description: |-
     6    The PowerDNS provider is used manipulate DNS records supported by PowerDNS server. The provider needs to be configured with the proper credentials before it can be used.
     7  ---
     8  
     9  # PowerDNS Provider
    10  
    11  The PowerDNS provider is used manipulate DNS records supported by PowerDNS server. The provider needs to be configured
    12  with the proper credentials before it can be used. It supports both the [legacy API](https://doc.powerdns.com/3/httpapi/api_spec/) and the new [version 1 API](https://doc.powerdns.com/md/httpapi/api_spec/), however resources may need to be configured differently.
    13  
    14  Use the navigation to the left to read about the available resources.
    15  
    16  ## Example Usage
    17  
    18  ```hcl
    19  # Configure the PowerDNS provider
    20  provider "powerdns" {
    21    api_key    = "${var.pdns_api_key}"
    22    server_url = "${var.pdns_server_url}"
    23  }
    24  
    25  # Create a record
    26  resource "powerdns_record" "www" {
    27    # ...
    28  }
    29  ```
    30  
    31  ## Argument Reference
    32  
    33  The following arguments are supported:
    34  
    35  * `api_key` - (Required) The PowerDNS API key. This can also be specified with `PDNS_API_KEY` environment variable.
    36  * `server_url` - (Required) The address of PowerDNS server. This can also be specified with `PDNS_SERVER_URL` environment variable.