platform/api/aws: Enable ENA networking
EC2 documentation warns that that this is not safe on PV.
@@ -247,7 +247,9 @@ func (a *API) CreateImportRole(bucket string) error {
}
func (a *API) CreateHVMImage(snapshotID string, name string, description string) (string, error) {
- res, err := a.ec2.RegisterImage(registerImageParams(snapshotID, name+"-hvm", description, "xvd", EC2ImageTypeHVM))
+ params := registerImageParams(snapshotID, name+"-hvm", description, "xvd", EC2ImageTypeHVM)
+ params.EnaSupport = aws.Bool(true)
+ res, err := a.ec2.RegisterImage(params)
if err != nil {
return "", fmt.Errorf("error creating hvm AMI: %v", err)
}
