aws iot create-role-alias
Creates a role alias. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
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
--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.