aws ec2 authorize-security-group-ingress

From wikieduonline
Revision as of 15:18, 4 September 2023 by Welcome (talk | contribs) (→‎Related)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: