CmdID

CmdID / aws / aws greengrass

aws greengrass associate-role-to-group

Associates a role with a group. AWS CLI reference

1 example 2 options 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 associate a role with a Greengrass group

The following associate-role-to-group example associates the specified IAM role with a Greengrass group. The group role is used by local Lambda functions and connectors to access AWS services. For example, your group role might grant permissions required for CloudWatch Logs integration.

aws greengrass associate-role-to-group --group-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 --role-arn arn:aws:iam::123456789012:role/GG-Group-RoleIdentify
--group-idThe ID of the Greengrass group.
--role-arnThe ARN of the role you wish to associate with this group.
Its output
{
    "AssociatedAt": "2019-09-10T20:03:30Z"
}

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

Options

2 in the AWS CLI reference
--group-idThe ID of the Greengrass group.
--role-arnThe ARN of the role you wish to associate with this group.