terraform-provider-heroku
terraform-provider-heroku copied to clipboard
Add support Heroku Private Spaces Logging for resource heroku_space and heroku_drain
Heroku Private Spaces supports setting up a heroku drain for a space during space creation. This log drain can later be updated via heroku_drain.
Terraform Version
Terraform v0.11.14
Heroku Provider Version
Terraform v0.11.14
+ provider.heroku v2.0.1
Affected Resource(s)
Please list the resources as a list, for example:
- heroku_space
- heroku_drain
References
- https://devcenter.heroku.com/articles/private-space-logging
Unfortunately, the Platform API does not support passing this option as part of Private Space create method:
https://devcenter.heroku.com/articles/platform-api-reference#space-create
https://devcenter.heroku.com/articles/json-schema-for-platform-api
I'll look into if that's something that's been overlooked, or actually blocked somehow from becoming part of the generally available, documented Platform API.
@mars any updates on this front? Working to setup a client who needs a private space with log draining and we'd rather not have to do it manually and then hook Terraform up after the fact
Hi @acorncom,
I recently did an update to the heroku-go but unfortunately, the Platform API schema still does not have passing the log drain URL as an option.
I ended up spiking on an opinionated resource in my herokux provider that'll enable users to create a shield private space with logging enabled on creation.
Hope this helps.
@davidji99 thx much, that's quite helpful!
It looks like Private Space creation does now support a log_drain_url: https://devcenter.heroku.com/articles/platform-api-reference#space-create
…and it's a writable option in the API schema: https://github.com/heroku/heroku-go/blob/master/v5/heroku.go#L3962