our images actually support ENA

This commit is contained in:
Neil Hanlon 2022-11-22 01:06:49 -05:00
parent 443ca4c3f9
commit 4204f63228
Signed by: neil
GPG key ID: 705BC21EC3C70F34

View file

@ -102,7 +102,7 @@ register-image() {
arch=arm64;;
esac
ami_id=$(aws --query "ImageId" ec2 register-image --name "$name" --description "$name" --block-device-mappings DeviceName="/dev/sda1",Ebs={SnapshotId="$snapshot_id"} --root-device-name "/dev/sda1" --virtualization-type hvm --architecture $arch)
ami_id=$(aws --query "ImageId" ec2 register-image --name "$name" --description "$name" --block-device-mappings DeviceName="/dev/sda1",Ebs={SnapshotId="$snapshot_id"} --root-device-name "/dev/sda1" --virtualization-type hvm --architecture $arch --ena-support)
if [[ -z "$ami_id" ]]; then
return 1