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
22 stars 1 forks source link

Source Repo doesn't connect #16

Closed virus2016 closed 6 months ago

virus2016 commented 9 months ago

I can't seem to get source_repo to work:

resource "railway_service" "nextjs" {
  name       = "nextjs"
  project_id = railway_project.nextjs.id
  source_repo = "GROUP/PROJECT"
  config_path = "apps/nextjs/railway.json"
  root_directory = null
  source_image = null
}

It creates the service but the repo is not connected to it.

Funding

Fund with Polar

pksunkara commented 8 months ago

There seems to be something weird going on, my services used to have source repo but it isn't shown right now. But deployments still seemed to work.

pksunkara commented 7 months ago

Railway might have completely moved to serviceConnect mutation. But since the old properties are still there, will need to investigate if the old properties work at all, and if they do not, we should also move this.

wertlex commented 6 months ago

@pksunkara, it seems that they have really moved to the serviceConnect mutation only. serviceCreate still has the repo and image parameters, but repo does not have any real effect (while image still works).

Would you mind if I try to issue a fix for that?

pksunkara commented 6 months ago

Feel free because I will probably get to it only next month.

wertlex commented 6 months ago

@pksunkara Seems to be fixed: https://github.com/terraform-community-providers/terraform-provider-railway/pull/21

Any inputs are appreciated!