render-oss / terraform-provider-render

Source code for the official Render Terraform provider
40 stars 3 forks source link

Add support for configuring preview environments #18

Open iainbeeston opened 2 months ago

iainbeeston commented 2 months ago

At the moment there doesn't seem to be any support for configuring preview environments to be different from production. In the case of my project the things I'm missing in the terraform provider are:

The render.com documentation describes all of these. I'd really like to migrate away from render.yml to terraform but I can't without access to these settings, is there any plan to add them in the near future?

jakemalachowski commented 2 months ago

Render preview environments require using Blueprints at this time. We plan to add support for managing preview environments via other methods in the future.

You may be able to use a combination of Terraform and Github Actions to create a similar preview environment experience. You can run terraform apply on each PR and push, and set the preview plans and values in the TF config based on whether the branch you are working from == main.