HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/awscli/examples/greengrass/get-service-role-for-account.rst
**To retrieve the details for the service role that is attached to your account**

The following ``get-service-role-for-account`` example retrieves information about the service role that is attached to your AWS account. ::

    aws greengrass get-service-role-for-account
    
Output::

    {
        "AssociatedAt": "2018-10-18T15:59:20Z",
        "RoleArn": "arn:aws:iam::123456789012:role/service-role/Greengrass_ServiceRole"
    }

For more information, see `Greengrass Service Role <https://docs.aws.amazon.com/greengrass/latest/developerguide/service-role.html>`__ in the **AWS IoT Greengrass Developer Guide**.