Provides a Heroku Pipeline Coupling resource.
A pipeline is a group of Heroku apps that share the same codebase. Once a
pipeline is created using heroku_pipeline
, and apps are added
to different stages using heroku_pipeline_coupling
, you can promote app slugs
to the downstream stages.
See heroku_pipeline
for complete usage documentation.
resource "heroku_pipeline_coupling" "production" {
app_id = heroku_app.production.id
pipeline = heroku_pipeline.test.id
stage = "production"
}
The following arguments are supported:
app_id
- (Required) Heroku app ID (do not use app name)pipeline
- (Required) The ID of the pipeline to add this app to.stage
- (Required) The stage to couple this app to. Must be one of
review
, development
, staging
, or production
.The following attributes are exported:
id
- The UUID of this pipeline coupling.Pipeline couplings can be imported using the Pipeline coupling id
, e.g.
$ terraform import heroku_pipeline_coupling.foobar 12345678