Using Console
Using CLI
<security-group-id>
with the ID of the security group that you want to remediate.
<security-group-id>
with the ID of the security group that you updated.
Using Python
<SECURITY_GROUP_ID>
with the ID of the security group that needs to be remediated and <TRUSTED_CIDR>
with the CIDR block of the trusted source that should have HTTP access to the EC2 instance(s).Note: Make sure to test this code in a non-production environment before applying it to a production environment.