Delete an inbound rule from a security group.
Section: VPC, Subnets, and Security Groups
Remove inbound security group rule
bash
bash
aws ec2 revoke-security-group-ingress --group-id sg-0123456789abcdef0 --protocol tcp --port 443 --cidr 0.0.0.0/0Explanation
Removes a matching rule from the group.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing VPC, Subnets, and Security Groups