heroku_addon

Provides a Heroku Add-On resource. These can be attach services to a Heroku app.

Example Usage

# Create a new Heroku app
resource "heroku_app" "default" {
  name = "test-app"
}

# Create a database, and configure the app to use it
resource "heroku_addon" "database" {
  app_id = heroku_app.default.id
  plan   = "heroku-postgresql:mini"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Addons can be imported using the Addon id, e.g.

$ terraform import heroku_addon.foobar 12345678