AWS Fundamentals Logo
AWS Fundamentals
AWS::IoT::RoleAlias

IoT RoleAlias

Use the AWS::IoT::RoleAlias resource to declare an AWS IoT RoleAlias.

Properties

4 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
RoleArn
string
Required
CredentialDurationSeconds
integer
RoleAlias
string
Create-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
RoleAliasArnstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::IoT::RoleAlias

Resources:
  MyResource:
    Type: AWS::IoT::RoleAlias
    Properties:
      RoleArn: "arn:aws:service:region:account:resource"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

iam:GetRoleiam:PassRoleiot:CreateRoleAliasiot:DescribeRoleAliasiot:TagResourceiot:ListTagsForResourcekms:Decrypt

read

iam:GetRoleiam:PassRoleiot:DescribeRoleAliasiot:ListTagsForResourcekms:Decrypt

update

iam:GetRoleiam:PassRoleiot:UpdateRoleAliasiot:DescribeRoleAliasiot:TagResourceiot:UntagResourceiot:ListTagsForResourcekms:Decrypt

delete

iot:DeleteRoleAliasiot:DescribeRoleAliaskms:Decrypt

list

iot:ListRoleAliases

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceIoT
Properties5
Required1
TaggingSupported
Primary IDRoleAlias

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

RoleAlias

External Links