First check and enable in linux
First we have to setup aws-cli on the server.
Run this command, if output is true means enabled or if false means not enabled
aws ec2 describe-instances –instance-ids instance_id –query “Reservations[].Instances[].EnaSupport”
if not enabled then run this command to enable it.
aws ec2 modify-instance-attribute –instance-id instance_id –ena-support
if enabled or you want disable then run this command
aws ec2 modify-instance-attribute –instance-id instance_id –no-ena-support
If we want to see ENA is enabled or not on EC2 AMI
aws ec2 describe-images –image-id ami_id –query “Images[].EnaSupport”
Now we do in windows
Run this command, if output is true means enabled or if false means not enabled
(Get-EC2Instance -InstanceId instance-id).Instances.EnaSupport
if not enabled then run this command to enable it.
Edit-EC2InstanceAttribute -InstanceId instance_id -EnaSupport $true
if enabled or you want disable then run this command
Edit-EC2InstanceAttribute -InstanceId instance_id -EnaSupport $false
If we want to see ENA is enabled or not on EC2 AMI
(Get-EC2Image -ImageId ami_id).EnaSupport