How to enable detailed monitoring on an EC2 Instance from AWS CLI

Run the below command to enabled detailed monitoring on a running EC2 Instance

aws ec2 monitor-instances --instance-ids INSTANCEID

Disable detailed monitoring on an EC2 Instance by running the below command

aws ec2 unmonitor-instances --instance-ids INSTANCEID
See also  How to create snapshot of an EBS Volume