Infrastructure-as-Code

3 years ago

Configurable way to define all the infrastructure required to bootstrap a project, that you can commit to a repository
Related threads: https://github.com/railwayapp/nixpacks/issues/494
https://github.com/railwayapp/cli/issues/263

In Progress

17 Replies

Status changed to In Progress angelo almost 3 years ago


Anonymous

3 years ago

Not sure if this is the right place for this but its the most appropriate place ive found .
Cloud formation has a linter.
Would be cool if "railway-formation" or whatever it will be called ( hopefully something train related and cool ) had the same.
https://github.com/aws-cloudformation/cfn-lint
( im assuming infra as code would be something along the lines as a json file )
Being able to define variables that get populated inside the "railway-formation" would also be nice i think could be usefull along with the ability to split the schema across multiple files. (but i may be barking up the wrong tree!)


Anonymous

3 years ago

Pulumi and Terraform please


3 years ago

Pulumi and Terraform please

Sean Knowles: You mean that you would want a Terraform adapter into Railway? Just want more clarification on what you expect to see.


3 years ago

This feature is now in beta! I encourage everyone to try it out and give us your feedback :)
https://docs.railway.app/deploy/config-as-code


Anonymous
TRIAL

3 years ago

Love the idea of the toml/json build spec, but unless I'm mistaken this doesn't really address the idea of the linked Railway cli github issue. Ideally I would be able to connect a new repo with a full IaC config and have it set up the db, api, frontend, perform database migrations and seed scripts across all defined environments. The config as it stands is just single-environment, single-service deploy details, right?


manzanit0
HOBBY

3 years ago

Pulumi and Terraform please

Angelo Saraceno: That would actually be very nice. Not sure how much sense it would make at the moment though… It would maybe make more sense once routes, databases, subnets, etc. could be configured.


Anonymous

2 years ago

I'd absolutely love a Terraform provider for Railway – we manage our infrastructure (AWS, GitHub resources, Vercel, etc) by writing terraform config files, and it would be nothing short of amazing to add a provider for Railway.

https://registry.terraform.io/browse/providers


Anonymous

2 years ago

Pulumi and Terraform please

Angelo Saraceno: +1 here on a Terraform provider for Railway – added a comment above in the same vein before I saw this comment here.


pksunkara2
PRO

2 years ago

I have an initial implementation released at https://registry.terraform.io/providers/terraform-community-providers/railway/latest/docs.

Just waiting for more info from Railway people to implement support for variables.


Anonymous

2 years ago


pksunkara2
PRO

2 years ago

https://registry.terraform.io/providers/terraform-community-providers/railway is ready and I am using it in production for my use cases.

If you feel something is missing, PR contributions are welcome.


2 years ago

Leaving a comment here as the team is looking into a second pass in unifying our Infrastructure as Code feature set.

We support: https://docs.railway.app/deploy/config-as-code and https://nixpacks.com/docs/guides/configuring-builds but we are looking for more of your feedback!


Anonymous

2 years ago

Leaving a comment here as the team is looking into a second pass in unifying our Infrastructure as Code feature set.

We support: https://docs.railway.app/deploy/config-as-code and https://nixpacks.com/docs/guides/configuring-builds but we are looking for more of your feedback!

Angelo Saraceno: Having an official terraform provider would be awesome.


Anonymous

2 years ago

Leaving a comment here as the team is looking into a second pass in unifying our Infrastructure as Code feature set.

We support: https://docs.railway.app/deploy/config-as-code and https://nixpacks.com/docs/guides/configuring-builds but we are looking for more of your feedback!

Angelo Saraceno: The config-as-code does not support defining and attaching volume to services.


2 years ago

Just pitching in here to say that I'd really like full-project IaC for monorepos with microservices, as described in the original issue - this would also solve variables in new environments, as you could just spin up a new environment from a config file. In addition, you could even add new services in PRs and have that just work without breaking.

TL;DR: having code changes that depend on infrastructure changes is a point of failure that could be solved by this.

Also, this would simplify template creation significantly.


a year ago

You have a api, create a pulumi provider - done.


2 months ago

Not having Pulumi provider is really a bummer.