Using Console
Using CLI
<instance-id>
with the actual ID of the EC2 instance.
<security-group-id>
with the Security Group ID obtained in the previous step.
Using Python
'YOUR_SECURITY_GROUP_ID'
with the actual ID of the security group that needs to be remediated.