Using Console
Using CLI
<security-group-id>
with the security group ID obtained in the previous step and <desired-hop-limit>
with the desired hop limit value.
Using Python
pip install boto3
if not already installed.describe_instances
method to get information about all EC2 instances.modify_instance_attribute
method to update the hop limit for non-compliant instances.