Can I programmatically interact with a volume on /dev?
I’m writing a script to automate immutable deployments to droplets. Because these deployments are immutable, a new droplet is created for every deploy and the previous droplet is destroyed. State is stored on a Block Storage volume.
I can see that volumes can be referenced from
/dev/by-uuid. However, the uuids used in the
by-uuid folder do not seem to be the same as the Volume ID returned by the DigitalOcean API.
My question is: given a Volume object obtained from the DO API, can I programmatically determine which device in
/dev that Volume corresponds to?