2014-07-24 17:05:33 +02:00
---
layout: "heroku"
page_title: "Provider: Heroku"
sidebar_current: "docs-heroku-index"
2014-10-22 05:21:56 +02:00
description: |-
The Heroku provider is used to interact with the resources supported by Heroku. The provider needs to be configured with the proper credentials before it can be used.
2014-07-24 17:05:33 +02:00
---
# Heroku Provider
The Heroku provider is used to interact with the
resources supported by Heroku. 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 Heroku provider
provider "heroku" {
email = "ops@company.com"
api_key = "${var.heroku_api_key}"
}
2014-07-29 08:51:24 +02:00
# Create a new application
2014-07-24 17:05:33 +02:00
resource "heroku_app" "default" {
...
}
```
## Argument Reference
The following arguments are supported:
2015-04-01 00:50:00 +02:00
* `api_key` - (Required) Heroku API token. It must be provided, but it can also
be sourced from the `HEROKU_API_KEY` environment variable.
* `email` - (Required) Email to be notified by Heroku. It must be provided, but
it can also be sourced from the `HEROKU_EMAIL` environment variable.
2014-07-24 17:05:33 +02:00