aws ec2 authorize-security-group-egress
Adds the specified outbound (egress) rules to a security group. AWS CLI reference
5 options Its page in the AWS CLI reference
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--group-idThe ID of the security group.--ip-permissionsThe permissions for the security group rules.--source-security-group-owner-id, --source-security-group-name, --ip-protocol, --from-port, --cidr-ip, --to-portNot supported.--tag-specificationsThe tags applied to the security group rule.