@@ -11,24 +11,15 @@ description: |-
1111Provides a [ Heroku Pipeline Promotion] ( https://devcenter.heroku.com/articles/pipelines )
1212resource.
1313
14- A pipeline promotion allows you to deploy releases from one app to other apps within the same
14+ A pipeline promotion allows you to deploy a specific release from one app to other apps within the same
1515pipeline. This enables infrastructure-as-code workflow for promoting code between pipeline stages
1616such as staging to production.
1717
18- You can promote either the latest release from the source app, or specify a particular release by ID.
19-
2018## Example Usage
2119
2220``` hcl
23- # Basic promotion from staging to production (latest release)
21+ # Basic promotion from staging to production
2422resource "heroku_pipeline_promotion" "staging_to_prod" {
25- pipeline = heroku_pipeline.my_app.id
26- source_app_id = heroku_app.staging.id
27- targets = [heroku_app.production.id]
28- }
29-
30- # Promotion of a specific release
31- resource "heroku_pipeline_promotion" "specific_release" {
3223 pipeline = heroku_pipeline.my_app.id
3324 source_app_id = heroku_app.staging.id
3425 release_id = "01234567-89ab-cdef-0123-456789abcdef"
@@ -39,6 +30,7 @@ resource "heroku_pipeline_promotion" "specific_release" {
3930resource "heroku_pipeline_promotion" "staging_to_multiple" {
4031 pipeline = heroku_pipeline.my_app.id
4132 source_app_id = heroku_app.staging.id
33+ release_id = "01234567-89ab-cdef-0123-456789abcdef"
4234 targets = [
4335 heroku_app.production.id,
4436 heroku_app.demo.id
@@ -53,7 +45,7 @@ The following arguments are supported:
5345* ` pipeline ` - (Required) The UUID of the pipeline containing the apps.
5446* ` source_app_id ` - (Required) The UUID of the source app to promote from.
5547* ` targets ` - (Required) Set of UUIDs of target apps to promote to.
56- * ` release_id ` - (Optional ) The UUID of a specific release to promote. If not specified, promotes the latest release from the source app .
48+ * ` release_id ` - (Required ) The UUID of the specific release to promote.
5749
5850## Attributes Reference
5951
@@ -69,6 +61,6 @@ The following attributes are exported:
6961* Pipeline promotions are immutable - they cannot be updated or modified after creation.
7062* All apps (source and targets) must be in the same pipeline.
7163* All apps must have the same generation (Cedar or Fir). See [ ` heroku_pipeline ` ] ( ./pipeline.html ) for generation compatibility requirements.
72- * The source app must have at least one release to promote .
73- * Promotions copy either the latest release (if no ` release_id ` specified) or the specified release to all target apps.
64+ * The specified release must exist on the source app .
65+ * Promotions copy the specified release to all target apps.
7466
0 commit comments