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

Does changing region actually change the region? #29

Open pksunkara opened 2 months ago

pksunkara commented 2 months ago

I have tested it through both API and Terraform. Changing the region updates the service instance value to the new region in the UI (both in setting and deployment panel) but I don't see a new deployment happening. Going and clicking "Redeploy" is not actually migrating the volume, so I am not actually sure if it's deploying in the new region or not. But when changing the region through UI, a new deployment happens and volume is migrated.

Therefore, I have doubts whether the region shown in the UI is actually the region the service is being deployed.

  1. If Railway doesn't want to actually update the region of the service through API: a. We need to trigger redeploy after updating region. b. Railway needs to fix the UI in the deployment panel showing the wrong region.
  2. If Railway wants to support updating the region of the service through API: a. Railway needs to fix it.

Either way, I would love to know if anyone know of a way to test it through service logs to understand which region the service is actually deployed?

@wertlex Would love to know your experience of using terraform for regions.

@zuchka Can you please let me know which way to proceed forward?

Funding

Fund with Polar

wertlex commented 2 months ago

This is quite an interesting finding

I didn't dig deep enough: