aws ec2 authorize-security-group-ingress

From wikieduonline
Jump to navigation Jump to search

aws ec2 authorize-security-group-ingress --group-id sg-02c0c0xxxxxx --protocol tcp --port 22 --cidr 0.0.0.0/0
aws ec2 authorize-security-group-ingress --group-id sg-02c0c0xxxxxx --protocol tcp --port 5432 --cidr 0.0.0.0/0
{
   "Return": true,
   "SecurityGroupRules": [
       {
           "SecurityGroupRuleId": "sgr-0c0xxxxxx",
           "GroupId": "sg-02c0xxxxx",
           "GroupOwnerId": "550886787118",
           "IsEgress": false,
           "IpProtocol": "tcp",
           "FromPort": 5432,
           "ToPort": 5432,
           "CidrIpv4": "0.0.0.0/0"
       }
   ]
}


Related[edit]

See also[edit]

Advertising: