Files
opentf/website/source/docs/providers/cloudflare/index.html.markdown
Paul Hinze 5b53c26d33 docs: fill out all provider env var configuration
I find env vars a lot easier to use in day-to-day practice, so it's
probably a good idea to let the users have that benefit too!
2015-04-10 14:31:53 -05:00

40 lines
1.1 KiB
Markdown

---
layout: "cloudflare"
page_title: "Provider: Cloudflare"
sidebar_current: "docs-cloudflare-index"
description: |-
The CloudFlare provider is used to interact with the DNS resources supported by CloudFlare. The provider needs to be configured with the proper credentials before it can be used.
---
# CloudFlare Provider
The CloudFlare provider is used to interact with the
DNS resources supported by CloudFlare. The provider needs to be configured
with the proper credentials before it can be used.
Use the navigation to the left to read about the available resources.
## Example Usage
```
# Configure the CloudFlare provider
provider "cloudflare" {
email = "${var.cloudflare_email}"
token = "${var.cloudflare_token}"
}
# Create a record
resource "cloudflare_record" "www" {
...
}
```
## Argument Reference
The following arguments are supported:
* `email` - (Required) The email associated with the account. This can also be
specified with the `CLOUDFLARE_EMAIL` shell environment variable.
* `token` - (Required) The Cloudflare API token. This can also be specified
with the `CLOUDFLARE_TOKEN` shell environment variable.