Which environment variable gives me the id of a service instance?
yingzhox
PROOP

8 months ago

Hi team,

How can I access the instance id/tag of a service if there are multiple instances?

Thanks

Solved

3 Replies

Railway
BOT

8 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


yingzhox
PROOP

8 months ago

I've read https://docs.railway.com/reference/variables#railway-provided-variables but not sure if RAILWAY_ENVIRONMENT_ID is what I need


8 months ago

Hello,

RAILWAY_REPLICA_ID is what you would want.


Status changed to Awaiting User Response Railway 8 months ago


Railway
BOT

7 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 7 months ago


Loading...