Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for configuring preview environments #18

Open
iainbeeston opened this issue Aug 12, 2024 · 1 comment
Open

Add support for configuring preview environments #18

iainbeeston opened this issue Aug 12, 2024 · 1 comment

Comments

@iainbeeston
Copy link

iainbeeston commented Aug 12, 2024

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:

  • Setting a preview_plan in the render_web_service provider
  • Setting a preview_plan in the render_postgres provider
  • Setting preview_value (for each env var) in the render_env_group provider (and also for env vars within web service and cron job)

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants