» heroku_account_feature
This resource is used to create and manage User Features on Heroku.
NOTE: If this resource's HCL is removed from a .tf
file, the behavior is to disable account feature
and remove resource from state.
» Available Features
For a list of available features, use the Heroku CLI to fetch them for the current user:
heroku labs
The output will contain User Features that may be managed with this resource.
» Example Usage
# Create a new Heroku app
resource "heroku_account_feature" "example_metrics" {
name = "metrics-request-volume"
enabled = true
}
» Argument Reference
The following arguments are supported:
-
name
- (Required) Name of the account feature -
enabled
- (Required) Enable or disable the account feature
» Attributes Reference
The following attributes are exported:
-
id
- Comprised of acount email & feature name -
description
- Description of account feature -
state
- State of account feature
» Import
Existing account features can be imported using a combination of the account email (the email address tied to the Heroku API key) and the feature name.
For example:
$ terraform import heroku_account_feature.example_metrics name@example.com:metrics-request-volume