terraform-provider-heroku
terraform-provider-heroku copied to clipboard
Heroku Pipelines: GitHub Sync is missing
Hello,
to use terraform for heroku it would be useful to configure the github integration within terraform. Currently this is only possible by using the webinterface of heroku.
This would make it possible to have a automatic deployed app after running apply on a new app.
This is a feature missing in the Heroku API, so Terraform would never be able to implement it.
@bernerdschaefer this is the ticket I was discussing in Slack recently. If the Pipelines and App endpoints returned their webhook, we could then pass it to github_repository_webhook to wire Heroku apps into GitHub using Terraform.
Any chance of this happening still? Unsure how to best implement it otherwise, since it seems to want an app deployed before terraform can create a dyno.
Until this feature lands in the Pipelines API, it's possible to use this provider's new Slug resource to launch an app.
Another option to launch Heroku apps from Terraform is to connect pipelines with this provider's Release resource.
The low hanging 🍏 kinda way to do this allow the plan to fail, and then deploy the app using Heroku git. Then run the plan again, as it will pass this time. Unsophisticated I know, but it works. This is only ever an issue with a new app.
Any updates on this? Are Heroku APIs planning on fixing this from their side?
For those that are interested, you could try out https://registry.terraform.io/providers/davidji99/herokux/latest/docs/resources/pipeline_github_integration to setup the pipeline Github integration.