This can be simplified to something like:

```ruby
ephemeral_devices = node[cloud].map do |key, device|
  if key.match(/^block_device_mapping_ephemeral\d+$/)
    device.match(/\/dev\//) ? device : "/dev/#{device}"
  end
end
```

Also, we should make sure our regex is strict with the caret and dollar.