Using Console
Using CLI
0.0.0.0/0
as the source) using the revoke-security-group-ingress command.<security-group-id>
with the actual security group ID, <port-number>
with the specific port number (e.g., 22 for SSH, 80 for HTTP, 443 for HTTPS), and 0.0.0.0/0
with the appropriate source IP range if needed.Using Python
ip_ranges
variable.
update_security_group.py
, and run it using the Python interpreter: