HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //lib/python3.6/site-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**.