groupSet

From wikieduonline
Revision as of 16:24, 22 June 2022 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

aws ec2 describe-instance-attribute --instance-id i-00b1xxxxx8aa --attribute groupSet
{
    "Groups": [
        {
            "GroupName": "default",
            "GroupId": "sg-02c0c057d26760df6"
        }
    ],
    "InstanceId": "i-00bxxxxxx118aa"
}

Ref: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html

Related

aws ec2 authorize-security-group-ingress --region region --group-id security_group_id --protocol tcp --port 22 --cidr cidr_ip_range

See also

Advertising: