aws ec2 authorize-security-group-ingress
Adds the specified inbound (ingress) rules to a security group. AWS CLI reference
11 options Its page in the AWS CLI reference
Options
--cidr-ipThe IPv4 address range, in CIDR format.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--from-portIf the protocol is TCP or UDP, this is the start of the port range.--group-idThe ID of the security group.--group-name[Default VPC] The name of the security group.--ip-permissionsThe permissions for the security group rules.--ip-protocolThe IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers).--source-security-group-name[Default VPC] The name of the source security group.--source-security-group-owner-idThe Amazon Web Services account ID for the source security group, if the source security group is in a different account.--tag-specificationsThe tags applied to the security group rule.--to-portIf the protocol is TCP or UDP, this is the end of the port range.