heroku_review_app_config

Provides a resource for configuring review apps. Using this resource also enables review apps for a pipeline.

Example Usage

data "heroku_pipeline" "test-pipeline" {
  name = "test pipeline"
}

resource "heroku_review_app_config" "foobar" {
  pipeline_id = data.heroku_pipeline.test-pipeline.id
  org_repo = "yourcompany/yourrepo"
  automatic_review_apps = true
  base_name = "yourcompany"

  deploy_target {
    id   = "us"
    type = "region"
  }

  destroy_stale_apps = true
  stale_days = 5
  wait_for_ci = true
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

repo_id - ID of the Github repository used for review apps.

Import

An Existing review app config using the combination of the pipeline UUID and the Github organization/repository separated by a colon.

$ terraform import heroku_review_app_config.foobar afd193fb-7c5a-4d8f-afad-2388f4e6049d:heroku/homebrew-brew