NixOS / nixops-aws

GNU Lesser General Public License v3.0
52 stars 39 forks source link

EC2 volume attachement doesn't work with 5th generation instances (c5/m5) having nvme devices #59

Open AmineChikhaoui opened 6 years ago

AmineChikhaoui commented 6 years ago

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.

lionello commented 2 years ago

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