AI Coding and IaC
mattijsdp
HOBBYOP

a month ago

TLDR: I don't understand from a vision/culture perspective why Railway doesn't support infrastructure as code. How do we people use it with AI?

Railway has a public API which "is the same API that powers the Railway dashboard.". This I highly admire. It means you can in theory automate anything that is done through the API. In practice though this imperative way of setting up your infrastructure is quite tedious. It also doesn't create an easy to read text-based state of your infra. Declarative IaC languages like Terraform and pulumi are much easier to create infra with and read in that respect. There is a community maintained Railway Terraform provider but it lacks quite a lot of functionality (for example environments). So why have a public API and Config-as-Code (railway.json) on the one hand but no IaC on the other?

In my opinion, this will only become more important as AI coding takes over. I love Railway because it makes things easy. This easiness translates in my opinion to code. It's not because something is defined as code that that would make it harder to use. Especially, when we have these amazing coding agents to write things for us. Without a declarative way to define my infrastructure however, I either have to go in and press buttons on a dashboard myself or have the agent write some very hard to read imperative shell script that uses the public API (or CLI) making even a small change a few weeks down the line frustratingly difficult to implement.

I'm clearly misunderstanding the Railway vision somewhat as this request isn't new. This isn't only a rant though. As I'm writing less and less code myself I do want to keep using Railway so I'm genuinely interested how people are creating/updating their Railway infra with coding agents? Is it through the CLI only? Custom scripts?

Under Review

0 Threads mention this feature

0 Replies

Loading...