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

Using dynamic vars like ${{RAILWAY_PUBLIC_DOMAIN}} #24

Closed virus2016 closed 4 months ago

virus2016 commented 4 months ago

We need to be able to set the following:

resource "railway_variable" "sentry_prod" {
  name           = "DOMAIN"
  value          = "${{RAILWAY_PUBLIC_DOMAIN}}"
  environment_id = railway_environment.production.id
  service_id     = railway_service.backup-cron.id
}

Have I done this wrong?

Funding

Fund with Polar

virus2016 commented 4 months ago

Found the answer:

resource "railway_variable" "sentry_prod" {
  name           = "DOMAIN"
  value          = "$${{RAILWAY_PUBLIC_DOMAIN}}"
  environment_id = railway_environment.production.id
  service_id     = railway_service.backup-cron.id
}