CmdID

CmdID / aws / aws greengrass

aws greengrass get-service-role-for-account

Retrieves the service role that is attached to your account. AWS CLI reference

1 example 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 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-accountIdentify
Its output
{
    "AssociatedAt": "2018-10-18T15:59:20Z",
    "RoleArn": "arn:aws:iam::123456789012:role/service-role/Greengrass_ServiceRole"
}

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