HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/awscli/examples/greengrass/associate-role-to-group.rst
**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 2494ee3f-7f8a-4e92-a78b-d205f808b84b \
        --role-arn arn:aws:iam::123456789012:role/GG-Group-Role

Output::

    {
        "AssociatedAt": "2019-09-10T20:03:30Z"
    }

For more information, see `Configure the Group Role <https://docs.aws.amazon.com/greengrass/latest/developerguide/config-iam-roles.html>`__ in the *AWS IoT Greengrass Developer Guide*.