terraform-community-providers / terraform-provider-railway

Terraform provider for railway.app
https://registry.terraform.io/providers/terraform-community-providers/railway/latest/docs
Mozilla Public License 2.0
23 stars 1 forks source link

Environment variable collections #25

Closed wertlex closed 3 months ago

wertlex commented 5 months ago

This PR introduces a new resource called railway_variable_collection.

The railway_variable_collection is essentially a group of environment variables that share a common lifecycle. It can be thought of as multiple railway_variable instances managed together.

The rationale for introducing this new resource is well described in Issue #22. In summary:

This new resource addresses these issues by allowing efficient and effective management of environment variables in bulk.

Closes: #22

wertlex commented 4 months ago

Hey! Just asking, if there is something required from my end regarding this PR?

P.S. I've been using these changes in a private fork for couple weeks - seems to be good so far

wertlex commented 3 months ago

@pksunkara thank you for merging it!

Just out of my curiosity, what is the motivation behind going with an array of objects instead of just an object?

pksunkara commented 3 months ago

To make the variable values sensitive since they are secrets.