nixops-aws
nixops-aws copied to clipboard
EC2 volume attachement doesn't work with 5th generation instances (c5/m5) having nvme devices
The deploy process will hang in https://github.com/NixOS/nixops/blob/master/nixops/backends/ec2.py#L543 i.e waiting for the device to be visible in the device filesystem due to the difference in nvme device names.
Make sure you use the proper NVMe name for the device. This works for me:
deployment.ec2.blockDeviceMapping."/dev/nvme1n1".disk = "vol-00ea207127b3ddb20a";
See also https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html