terraform/website/source/docs/providers/heroku/r/drain.html.markdown

36 lines
755 B
Markdown
Raw Normal View History

2014-07-30 01:20:13 +02:00
---
layout: "heroku"
page_title: "Heroku: heroku_drain"
sidebar_current: "docs-heroku-resource-drain"
2014-10-22 05:21:56 +02:00
description: |-
Provides a Heroku Drain resource. This can be used to create and manage Log Drains on Heroku.
2014-07-30 01:20:13 +02:00
---
# heroku\_drain
Provides a Heroku Drain resource. This can be used to
create and manage Log Drains on Heroku.
## Example Usage
```
resource "heroku_drain" "default" {
app = "test-app"
url = "syslog://terraform.example.com:1234"
2014-07-30 01:20:13 +02:00
}
2014-07-30 01:24:02 +02:00
```
2014-07-30 01:20:13 +02:00
## Argument Reference
The following arguments are supported:
* `url` - (Required) The URL for Heroku to drain your logs to.
2014-07-30 01:20:13 +02:00
* `app` - (Required) The Heroku app to link to.
## Attributes Reference
The following attributes are exported:
* `token` - The unique token for your created drain.
2014-07-30 01:20:13 +02:00