Using Console
Using CLI
aws ec2 describe-security-groups
aws ec2 revoke-security-group-ingress --group-id <security-group-id> --protocol tcp --port 1433 --cidr 0.0.0.0/0
Replace <security-group-id>
with the ID of the security group that you identified in step 2.
aws ec2 describe-security-groups --group-ids <security-group-id>
Replace <security-group-id>
with the ID of the security group that you identified in step 2.
Using Python
region_name
, security_group_name
, and client_ip_address
variables with the appropriate values for your environment.