CmdID

CmdID / aws / aws iot

aws iot create-role-alias

Creates a role alias. AWS CLI reference

1 example 4 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 create a role alias

The following create-role-alias example creates a role alias called LightBulbRole for the specified role.

aws iot create-role-alias --role-alias LightBulbRole --role-arn arn:aws:iam::123456789012:role/lightbulbrole-001Identify
--role-aliasThe role alias that points to a role ARN.
--role-arnThe role ARN.
Its output
{
    "roleAlias": "LightBulbRole",
    "roleAliasArn": "arn:aws:iot:us-west-2:123456789012:rolealias/LightBulbRole"
}

For more information, see Authorizing direct calls to AWS services using AWS IoT Core credential provider in the AWS IoT Developer Guide.

Options

4 in the AWS CLI reference
--credential-duration-secondsHow long (in seconds) the credentials will be valid.
--role-aliasThe role alias that points to a role ARN.
--role-arnThe role ARN.
--tagsMetadata which can be used to manage the role alias.