dcloud ec2 security-groups authorize-ingress

Add an inbound rule

IAM ec2:AuthorizeSecurityGroupIngressChanges state

Synopsis

dcloud ec2 security-groups authorize-ingress id --protocol protocol [flags]

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --protocolRequired

    enum

    The IP protocol the rule matches

    One of: tcp, udp, icmp

  • --from-portOptional

    number

    First port of the range; omitted: every port. Ignored for ICMP

    Constraints: integer, 0-65535

  • --to-portOptional

    number

    Last port of the range; omitted: fromPort alone

    Constraints: integer, 0-65535

  • --cidr-ipv4Optional

    string

    Where traffic may come from: a CIDR block or a single address (IPv4 or IPv6); default 0.0.0.0/0

    Default: "0.0.0.0/0"

  • --descriptionOptional

    string

    Free text; omitted: none

    Constraints: max 255 chars

Example

dcloud ec2 security-groups authorize-ingress id --protocol tcp

Generated from the API description, the same one the API checks requests against and the CLI is built from.