This resource is used to create and manage App Features on Heroku.
For a list of available features, use the Heroku CLI
to fetch them for one of your existing apps: heroku labs --app foobar
.
The output will contain User Features and App Features. This resource manages App Features.
If you need to manage User Features, use the heroku_account_feature
resource.
resource "heroku_app" "foobar" {
name = "foobar"
region = "us"
}
resource "heroku_app_feature" "log_runtime_metrics" {
app_id = heroku_app.foobar.id
name = "log-runtime-metrics"
}
The following arguments are supported:
app_id
- (Required) Heroku app ID (do not use app name)name
- (Required) The name of the App Feature to manage.enabled
- (Optional) Whether to enable or disable the App Feature. The default value is true.App features can be imported using the combination of the application name, a colon, and the feature's name.
For example:
$ terraform import heroku_app_feature.log-runtime-metrics foobar:log-runtime-metrics