CmdID

CmdID / aws / aws greengrass

aws greengrass get-associated-role

Retrieves the role associated with a particular group. AWS CLI reference

1 example 1 option Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To get the role associated with a Greengrass group

The following get-associated-role example gets the IAM role that's associated with the specified Greengrass group. The group role is used by local Lambda functions and connectors to access AWS services.

aws greengrass get-associated-role --group-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify
--group-idThe ID of the Greengrass group.
Its output
{
    "RoleArn": "arn:aws:iam::123456789012:role/GG-Group-Role",
    "AssociatedAt": "2019-09-10T20:03:30Z"
}

For more information, see Configure the group role in the AWS IoT Greengrass Developer Guide.

Options

1 in the AWS CLI reference
--group-idThe ID of the Greengrass group.