How to enable enhanced networking on an EC2 Instance from AWS CLI

Step1: Stop the EC2 Instance:

aws ec2 stop-instances --instance-ids INSTANCEID 

Step2: Set sriov-net-support to ‘simple’.

aws ec2 modify-instance-attribute --instance-id INSTANCEID --sriov-net-support simple

Once enabled, Enhanced networking cannot be disabled on an EC2 Instance.

Step3: Start the EC2 Instance

aws ec2 start-instances --instance-ids INSTANCEID 
See also  How to drop a materialized view in Redshift database