» heroku_app_release
Provides a Heroku App Release resource.
An app release represents a combination of code, config vars and add-ons for an app on Heroku.
NOTE: This resource requires the slug be uploaded to Heroku using heroku_slug
or with external tooling prior to running terraform.
» Example Usage
resource "heroku_app" "foobar" {
name = "foobar"
region = "us"
}
# Upload your slug
resource "heroku_app_release" "foobar-release" {
app = "${heroku_app.foobar.name}"
slug_id = "01234567-89ab-cdef-0123-456789abcdef"
}
» Argument Reference
The following arguments are supported:
-
app
- (Required) The name of the application -
slug_id
- unique identifier of slug -
description
- description of changes in this release
» Attributes Reference
The following attributes are exported:
-
id
- The ID of the app release
» Import
Existing app releases can be imported using the combination of the application name, a colon, and the formation's type.
For example:
$ terraform import heroku_app_release.foobar-release foobar