Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > dd7204292d310452063d09b5de9c13b7 > files > 872

aws-cli-docs-1.16.163-1.mga7.noarch.rpm

**To remove the rule that allows outbound traffic to a specific address range**

This example command removes the rule that grants access to the specified address ranges on TCP port 80.

Command::

  aws ec2 revoke-security-group-egress --group-id sg-1a2b3c4d --ip-permissions '[{"IpProtocol": "tcp", "FromPort": 80, "ToPort": 80, "IpRanges": [{"CidrIp": "10.0.0.0/16"}]}]'

**To remove the rule that allows outbound traffic to a specific security group**

This example command removes the rule that grants access to the specified security group on TCP port 80.

Command::

  aws ec2 revoke-security-group-egress --group-id sg-1a2b3c4d --ip-permissions '[{"IpProtocol": "tcp", "FromPort": 80, "ToPort": 80, "UserIdGroupPairs": [{"GroupId": "sg-4b51a32f"}]}]'