heroku_addon_attachment

Attaches a Heroku Addon Resource to an additional Heroku App.

Example Usage

resource "heroku_addon_attachment" "database" {
  app_id  = heroku_app.default.id
  addon_id = heroku_addon.database.id
}

// attach postgres credentials
resource "heroku_addon_attachment" "database_credentials" {
  app_id  = heroku_app.default.id
  addon_id = heroku_addon.database.id
  namespace = "credential: ${var.credential_name}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

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

$ terraform import heroku_addon_attachment.foobar 01234567-89ab-cdef-0123-456789abcdef