Skip to content

Commit cce798c

Browse files
committed
README.md: better usage instructions
1 parent 345e93d commit cce798c

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

README.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,26 @@ Requirements
1313
- [Terraform](https://www.terraform.io/downloads.html) 0.12.x
1414
- [Go](https://golang.org/doc/install) 1.11 (to build the provider plugin)
1515

16+
Using the Provider
17+
----------------------
18+
19+
```hcl
20+
terraform {
21+
required_providers {
22+
powerdns = {
23+
source = "pan-net/powerdns"
24+
}
25+
}
26+
}
27+
28+
provider "powerdns" {
29+
server_url = "https://host:port/" # or use PDNS_SERVER_URL variable
30+
api_key = "secret" # or use PDNS_API_KEY variable
31+
}
32+
```
33+
34+
For detailed usage see [provider's documentation page](https://www.terraform.io/docs/providers/powerdns/index.html)
35+
1636
Building The Provider
1737
---------------------
1838

@@ -36,11 +56,6 @@ $ go build
3656

3757
This will compile and place the provider binary, `terraform-provider-powerdns`, in the current directory.
3858

39-
Using the provider
40-
----------------------
41-
42-
For detailed usage see [provider's documentation page](https://www.terraform.io/docs/providers/powerdns/index.html)
43-
4459
Developing the Provider
4560
---------------------------
4661

0 commit comments

Comments
 (0)