How AWS IoT works with IAM - AWS IoT Core

How AWS IoT works with IAM

Before you use IAM to manage access to AWS IoT, you should understand which IAM features are available to use with AWS IoT. To get a high-level view of how AWS IoT and other AWS services work with IAM, see AWS Services That Work with IAM in the IAM User Guide.

AWS IoT identity-based policies

With IAM identity-based policies, you can specify allowed or denied actions and resources as well as the conditions under which actions are allowed or denied. AWS IoT supports specific actions, resources, and condition keys. To learn about all of the elements that you use in a JSON policy, see IAM JSON Policy Elements Reference in the IAM User Guide.

Actions

Administrators can use AWS JSON policies to specify who has access to what. That is, which principal can perform actions on what resources, and under what conditions.

The Action element of a JSON policy describes the actions that you can use to allow or deny access in a policy. Policy actions usually have the same name as the associated AWS API operation. There are some exceptions, such as permission-only actions that don't have a matching API operation. There are also some operations that require multiple actions in a policy. These additional actions are called dependent actions.

Include actions in a policy to grant permissions to perform the associated operation.

The following table lists the IAM IoT actions, the associated AWS IoT API, and the resource the action manipulates.

Policy actions AWS IoT API Resources
iot:AcceptCertificateTransfer AcceptCertificateTransfer

arn:aws:iot:region:account-id:cert/cert-id

Note

The AWS account specified in the ARN must be the account to which the certificate is being transferred.

iot:AddThingToThingGroup AddThingToThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

arn:aws:iot:region:account-id:thing/thing-name

iot:AssociateTargetsWithJob AssociateTargetsWithJob none
iot:AttachPolicy AttachPolicy

arn:aws:iot:region:account-id:thinggroup/thing-group-name

or

arn:aws:iot:region:account-id:cert/cert-id

iot:AttachPrincipalPolicy AttachPrincipalPolicy

arn:aws:iot:region:account-id:cert/cert-id

iot:AttachSecurityProfile AttachSecurityProfile

arn:aws:iot:region:account-id:securityprofile/security-profile-name

arn:aws:iot:region:account-id:dimension/dimension-name

iot:AttachThingPrincipal AttachThingPrincipal

arn:aws:iot:region:account-id:cert/cert-id

iot:CancelCertificateTransfer CancelCertificateTransfer

arn:aws:iot:region:account-id:cert/cert-id

Note

The AWS account specified in the ARN must be the account to which the certificate is being transferred.

iot:CancelJob CancelJob

arn:aws:iot:region:account-id:job/job-id

iot:CancelJobExecution CancelJobExecution

arn:aws:iot:region:account-id:job/job-id

arn:aws:iot:region:account-id:thing/thing-name

iot:ClearDefaultAuthorizer ClearDefaultAuthorizer None
iot:CreateAuthorizer CreateAuthorizer

arn:aws:iot:region:account-id:authorizer/authorizer-function-name

iot:CreateCertificateFromCsr CreateCertificateFromCsr *
iot:CreateDimension CreateDimension

arn:aws:iot:region:account-id:dimension/dimension-name

iot:CreateJob CreateJob

arn:aws:iot:region:account-id:job/job-id

arn:aws:iot:region:account-id:thinggroup/thing-group-name

arn:aws:iot:region:account-id:thing/thing-name

arn:aws:iot:region:account-id:jobtemplate/job-template-id

iot:CreateJobTemplate CreateJobTemplate

arn:aws:iot:region:account-id:job/job-id

arn:aws:iot:region:account-id:jobtemplate/job-template-id

iot:CreateKeysAndCertificate CreateKeysAndCertificate *
iot:CreatePolicy CreatePolicy

arn:aws:iot:region:account-id:policy/policy-name

iot:CreatePolicyVersion CreatePolicyVersion

arn:aws:iot:region:account-id:policy/policy-name

Note

This must be an AWS IoT policy, not an IAM policy.

iot:CreateRoleAlias CreateRoleAlias

(parameter: roleAlias)

arn:aws:iot:region:account-id:rolealias/role-alias-name

iot:CreateSecurityProfile CreateSecurityProfile

arn:aws:iot:region:account-id:securityprofile/security-profile-name

arn:aws:iot:region:account-id:dimension/dimension-name

iot:CreateThing CreateThing

arn:aws:iot:region:account-id:thing/thing-name

iot:CreateThingGroup CreateThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

for group being created and for parent group, if used

iot:CreateThingType CreateThingType

arn:aws:iot:region:account-id:thingtype/thing-type-name

iot:CreateTopicRule CreateTopicRule

arn:aws:iot:region:account-id:rule/rule-name

iot:DeleteAuthorizer DeleteAuthorizer

arn:aws:iot:region:account-id:authorizer/authorizer-name

iot:DeleteCACertificate DeleteCACertificate

arn:aws:iot:region:account-id:cacert/cert-id

iot:DeleteCertificate DeleteCertificate

arn:aws:iot:region:account-id:cert/cert-id

iot:DeleteDimension DeleteDimension

arn:aws:iot:region:account-id:dimension/dimension-name

iot:DeleteJob DeleteJob

arn:aws:iot:region:account-id:job/job-id

iot:DeleteJobTemplate DeleteJobTemplate

arn:aws:iot:region:account-id:job/job-template-id

iot:DeleteJobExecution DeleteJobExecution

arn:aws:iot:region:account-id:job/job-id

arn:aws:iot:region:account-id:thing/thing-name

iot:DeletePolicy DeletePolicy

arn:aws:iot:region:account-id:policy/policy-name

iot:DeletePolicyVersion DeletePolicyVersion

arn:aws:iot:region:account-id:policy/policy-name

iot:DeleteRegistrationCode DeleteRegistrationCode *
iot:DeleteRoleAlias DeleteRoleAlias

arn:aws:iot:region:account-id:rolealias/role-alias-name

iot:DeleteSecurityProfile DeleteSecurityProfile

arn:aws:iot:region:account-id:securityprofile/security-profile-name

arn:aws:iot:region:account-id:dimension/dimension-name

iot:DeleteThing DeleteThing

arn:aws:iot:region:account-id:thing/thing-name

iot:DeleteThingGroup DeleteThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

iot:DeleteThingType DeleteThingType

arn:aws:iot:region:account-id:thingtype/thing-type-name

iot:DeleteTopicRule DeleteTopicRule

arn:aws:iot:region:account-id:rule/rule-name

iot:DeleteV2LoggingLevel DeleteV2LoggingLevel

arn:aws:iot:region:account-id:thinggroup/thing-group-name

iot:DeprecateThingType DeprecateThingType

arn:aws:iot:region:account-id:thingtype/thing-type-name

iot:DescribeAuthorizer DescribeAuthorizer

arn:aws:iot:region:account-id:authorizer/authorizer-function-name

(parameter: authorizerName)

none
iot:DescribeCACertificate DescribeCACertificate

arn:aws:iot:region:account-id:cacert/cert-id

iot:DescribeCertificate DescribeCertificate

arn:aws:iot:region:account-id:cert/cert-id

iot:DescribeDefaultAuthorizer DescribeDefaultAuthorizer None
iot:DescribeEndpoint DescribeEndpoint *
iot:DescribeEventConfigurations DescribeEventConfigurations none
iot:DescribeIndex DescribeIndex

arn:aws:iot:region:account-id:index/index-name

iot:DescribeJob DescribeJob

arn:aws:iot:region:account-id:job/job-id

iot:DescribeJobExecution DescribeJobExecution None
iot:DescribeJobTemplate DescribeJobTemplate

arn:aws:iot:region:account-id:job/job-template-id

iot:DescribeRoleAlias DescribeRoleAlias

arn:aws:iot:region:account-id:rolealias/role-alias-name

iot:DescribeThing DescribeThing

arn:aws:iot:region:account-id:thing/thing-name

iot:DescribeThingGroup DescribeThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

iot:DescribeThingRegistrationTask DescribeThingRegistrationTask None
iot:DescribeThingType DescribeThingType

arn:aws:iot:region:account-id:thingtype/thing-type-name

iot:DetachPolicy DetachPolicy

arn:aws:iot:region:account-id:cert/cert-id

or

arn:aws:iot:region:account-id:thinggroup/thing-group-name

iot:DetachPrincipalPolicy DetachPrincipalPolicy

arn:aws:iot:region:account-id:cert/cert-id

iot:DetachSecurityProfile DetachSecurityProfile

arn:aws:iot:region:account-id:securityprofile/security-profile-name

arn:aws:iot:region:account-id:dimension/dimension-name

iot:DetachThingPrincipal DetachThingPrincipal

arn:aws:iot:region:account-id:cert/cert-id

iot:DisableTopicRule DisableTopicRule

arn:aws:iot:region:account-id:rule/rule-name

iot:EnableTopicRule EnableTopicRule

arn:aws:iot:region:account-id:rule/rule-name

iot:GetEffectivePolicies GetEffectivePolicies

arn:aws:iot:region:account-id:cert/cert-id

iot:GetIndexingConfiguration GetIndexingConfiguration None
iot:GetJobDocument GetJobDocument

arn:aws:iot:region:account-id:job/job-id

iot:GetLoggingOptions GetLoggingOptions *
iot:GetPolicy GetPolicy

arn:aws:iot:region:account-id:policy/policy-name

iot:GetPolicyVersion GetPolicyVersion

arn:aws:iot:region:account-id:policy/policy-name

iot:GetRegistrationCode GetRegistrationCode *
iot:GetTopicRule GetTopicRule

arn:aws:iot:region:account-id:rule/rule-name

iot:ListAttachedPolicies ListAttachedPolicies

arn:aws:iot:region:account-id:thinggroup/thing-group-name

or

arn:aws:iot:region:account-id:cert/cert-id

iot:ListAuthorizers ListAuthorizers None
iot:ListCACertificates ListCACertificates *
iot:ListCertificates ListCertificates *
iot:ListCertificatesByCA ListCertificatesByCA *
iot:ListIndices ListIndices None
iot:ListJobExecutionsForJob ListJobExecutionsForJob None
iot:ListJobExecutionsForThing ListJobExecutionsForThing None
iot:ListJobs ListJobs

arn:aws:iot:region:account-id:thinggroup/thing-group-name

if thingGroupName parameter used

iot:ListJobTemplates ListJobs None
iot:ListOutgoingCertificates ListOutgoingCertificates *
iot:ListPolicies ListPolicies *
iot:ListPolicyPrincipals ListPolicyPrincipals *
iot:ListPolicyVersions ListPolicyVersions

arn:aws:iot:region:account-id:policy/policy-name

iot:ListPrincipalPolicies ListPrincipalPolicies

arn:aws:iot:region:account-id:cert/cert-id

iot:ListPrincipalThings ListPrincipalThings

arn:aws:iot:region:account-id:cert/cert-id

iot:ListRoleAliases ListRoleAliases None
iot:ListTargetsForPolicy ListTargetsForPolicy

arn:aws:iot:region:account-id:policy/policy-name

iot:ListThingGroups ListThingGroups None
iot:ListThingGroupsForThing ListThingGroupsForThing

arn:aws:iot:region:account-id:thing/thing-name

iot:ListThingPrincipals ListThingPrincipals

arn:aws:iot:region:account-id:thing/thing-name

iot:ListThingRegistrationTaskReports ListThingRegistrationTaskReports None
iot:ListThingRegistrationTasks ListThingRegistrationTasks None
iot:ListThingTypes ListThingTypes *
iot:ListThings ListThings *
iot:ListThingsInThingGroup ListThingsInThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

iot:ListTopicRules ListTopicRules *
iot:ListV2LoggingLevels ListV2LoggingLevels None
iot:RegisterCACertificate RegisterCACertificate *
iot:RegisterCertificate RegisterCertificate *
iot:RegisterThing RegisterThing None
iot:RejectCertificateTransfer RejectCertificateTransfer

arn:aws:iot:region:account-id:cert/cert-id

iot:RemoveThingFromThingGroup RemoveThingFromThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

arn:aws:iot:region:account-id:thing/thing-name

iot:ReplaceTopicRule ReplaceTopicRule

arn:aws:iot:region:account-id:rule/rule-name

iot:SearchIndex SearchIndex

arn:aws:iot:region:account-id:index/index-id

iot:SetDefaultAuthorizer SetDefaultAuthorizer

arn:aws:iot:region:account-id:authorizer/authorizer-function-name

iot:SetDefaultPolicyVersion SetDefaultPolicyVersion

arn:aws:iot:region:account-id:policy/policy-name

iot:SetLoggingOptions SetLoggingOptions

arn:aws:iot:region:account-id:role/role-name

iot:SetV2LoggingLevel SetV2LoggingLevel

arn:aws:iot:region:account-id:thinggroup/thing-group-name

iot:SetV2LoggingOptions SetV2LoggingOptions

arn:aws:iot:region:account-id:role/role-name

iot:StartThingRegistrationTask StartThingRegistrationTask None
iot:StopThingRegistrationTask StopThingRegistrationTask None
iot:TestAuthorization TestAuthorization

arn:aws:iot:region:account-id:cert/cert-id

iot:TestInvokeAuthorizer TestInvokeAuthorizer None
iot:TransferCertificate TransferCertificate

arn:aws:iot:region:account-id:cert/cert-id

iot:UpdateAuthorizer UpdateAuthorizer

arn:aws:iot:region:account-id:authorizerfunction/authorizer-function-name

iot:UpdateCACertificate UpdateCACertificate

arn:aws:iot:region:account-id:cacert/cert-id

iot:UpdateCertificate UpdateCertificate

arn:aws:iot:region:account-id:cert/cert-id

iot:UpdateDimension UpdateDimension

arn:aws:iot:region:account-id:dimension/dimension-name

iot:UpdateEventConfigurations UpdateEventConfigurations None
iot:UpdateIndexingConfiguration UpdateIndexingConfiguration None
iot:UpdateRoleAlias UpdateRoleAlias

arn:aws:iot:region:account-id:rolealias/role-alias-name

iot:UpdateSecurityProfile UpdateSecurityProfile

arn:aws:iot:region:account-id:securityprofile/security-profile-name

arn:aws:iot:region:account-id:dimension/dimension-name

iot:UpdateThing UpdateThing

arn:aws:iot:region:account-id:thing/thing-name

iot:UpdateThingGroup UpdateThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

iot:UpdateThingGroupsForThing UpdateThingGroupsForThing

arn:aws:iot:region:account-id:thing/thing-name

arn:aws:iot:region:account-id:thinggroup/thing-group-name

Policy actions in AWS IoT use the following prefix before the action: iot:. For example, to grant someone permission to list all IoT things registered in their AWS account with the ListThings API, you include the iot:ListThings action in their policy. Policy statements must include either an Action or NotAction element. AWS IoT defines its own set of actions that describe tasks that you can perform with this service.

To specify multiple actions in a single statement, separate them with commas as follows:

"Action": [ "ec2:action1", "ec2:action2"

You can specify multiple actions using wildcards (*). For example, to specify all actions that begin with the word Describe, include the following action:

"Action": "iot:Describe*"

To see a list of AWS IoT actions, see Actions Defined by AWS IoT in the IAM User Guide.

Device Advisor actions

The following table lists the IAM IoT Device Advisor actions, the associated AWS IoT Device Advisor API, and the resource the action manipulates.

Policy actions AWS IoT API Resources
iotdeviceadvisor:CreateSuiteDefinition CreateSuiteDefinition

None

iotdeviceadvisor:DeleteSuiteDefinition DeleteSuiteDefinition

arn:aws:iotdeviceadvisor:region:account-id:suitedefinition/suite-definition-id

iotdeviceadvisor:GetSuiteDefinition GetSuiteDefinition

arn:aws:iotdeviceadvisor:region:account-id:suitedefinition/suite-definition-id

iotdeviceadvisor:GetSuiteRun GetSuiteRun

arn:aws:iotdeviceadvisor:region:account-id:suitedefinition/suite-run-id

iotdeviceadvisor:GetSuiteRunReport GetSuiteRunReport

arn:aws:iotdeviceadvisor:region:account-id:suiterun/suite-definition-id/suite-run-id

iotdeviceadvisor:ListSuiteDefinitions ListSuiteDefinitions None
iotdeviceadvisor:ListSuiteRuns ListSuiteRuns

arn:aws:iotdeviceadvisor:region:account-id:suitedefinition/suite-definition-id

iotdeviceadvisor:ListTagsForResource ListTagsForResource

arn:aws:iotdeviceadvisor:region:account-id:suitedefinition/suite-definition-id

arn:aws:iotdeviceadvisor:region:account-id:suiterun/suite-definition-id/suite-run-id

iotdeviceadvisor:StartSuiteRun StartSuiteRun

arn:aws:iotdeviceadvisor:region:account-id:suitedefinition/suite-definition-id

iotdeviceadvisor:TagResource TagResource

arn:aws:iotdeviceadvisor:region:account-id:suitedefinition/suite-definition-id

arn:aws:iotdeviceadvisor:region:account-id:suiterun/suite-definition-id/suite-run-id

iotdeviceadvisor:UntagResource UntagResource

arn:aws:iotdeviceadvisor:region:account-id:suitedefinition/suite-definition-id

arn:aws:iotdeviceadvisor:region:account-id:suiterun/suite-definition-id/suite-run-id

iotdeviceadvisor:UpdateSuiteDefinition UpdateSuiteDefinition

arn:aws:iotdeviceadvisor:region:account-id:suitedefinition/suite-definition-id

iotdeviceadvisor:StopSuiteRun StopSuiteRun

arn:aws:iotdeviceadvisor:region:account-id:suiterun/suite-definition-id/suite-run-id

Policy actions in AWS IoT Device Advisor use the following prefix before the action: iotdeviceadvisor:. For example, to grant someone permission to list all suite definitions registered in their AWS account with the ListSuiteDefinitions API, you include the iotdeviceadvisor:ListSuiteDefinitions action in their policy.

Resources

Administrators can use AWS JSON policies to specify who has access to what. That is, which principal can perform actions on what resources, and under what conditions.

The Resource JSON policy element specifies the object or objects to which the action applies. Statements must include either a Resource or a NotResource element. As a best practice, specify a resource using its Amazon Resource Name (ARN). You can do this for actions that support a specific resource type, known as resource-level permissions.

For actions that don't support resource-level permissions, such as listing operations, use a wildcard (*) to indicate that the statement applies to all resources.

"Resource": "*"
AWS IoT resources
Policy actions AWS IoT API Resources
iot:AcceptCertificateTransfer AcceptCertificateTransfer

arn:aws:iot:region:account-id:cert/cert-id

Note

The AWS account specified in the ARN must be the account to which the certificate is being transferred.

iot:AddThingToThingGroup AddThingToThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

arn:aws:iot:region:account-id:thing/thing-name

iot:AssociateTargetsWithJob AssociateTargetsWithJob None
iot:AttachPolicy AttachPolicy

arn:aws:iot:region:account-id:thinggroup/thing-group-name

or

arn:aws:iot:region:account-id:cert/cert-id

iot:AttachPrincipalPolicy AttachPrincipalPolicy

arn:aws:iot:region:account-id:cert/cert-id

iot:AttachThingPrincipal AttachThingPrincipal

arn:aws:iot:region:account-id:cert/cert-id

iot:CancelCertificateTransfer CancelCertificateTransfer

arn:aws:iot:region:account-id:cert/cert-id

Note

The AWS account specified in the ARN must be the account to which the certificate is being transferred.

iot:CancelJob CancelJob

arn:aws:iot:region:account-id:job/job-id

iot:CancelJobExecution CancelJobExecution

arn:aws:iot:region:account-id:job/job-id

arn:aws:iot:region:account-id:thing/thing-name

iot:ClearDefaultAuthorizer ClearDefaultAuthorizer None
iot:CreateAuthorizer CreateAuthorizer

arn:aws:iot:region:account-id:authorizer/authorizer-function-name

iot:CreateCertificateFromCsr CreateCertificateFromCsr *
iot:CreateJob CreateJob

arn:aws:iot:region:account-id:job/job-id

arn:aws:iot:region:account-id:thinggroup/thing-group-name

arn:aws:iot:region:account-id:thing/thing-name

arn:aws:iot:region:account-id:jobtemplate/job-template-id

iot:CreateJobTemplate CreateJobTemplate

arn:aws:iot:region:account-id:job/job-id

arn:aws:iot:region:account-id:jobtemplate/job-template-id

iot:CreateKeysAndCertificate CreateKeysAndCertificate *
iot:CreatePolicy CreatePolicy

arn:aws:iot:region:account-id:policy/policy-name

CreatePolicyVersion iot:CreatePolicyVersion

arn:aws:iot:region:account-id:policy/policy-name

Note

This must be an AWS IoT policy, not an IAM policy.

iot:CreateRoleAlias CreateRoleAlias

(parameter: roleAlias)

arn:aws:iot:region:account-id:rolealias/role-alias-name

iot:CreateThing CreateThing

arn:aws:iot:region:account-id:thing/thing-name

iot:CreateThingGroup CreateThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

for group being created and for parent group, if used

iot:CreateThingType CreateThingType

arn:aws:iot:region:account-id:thingtype/thing-type-name

iot:CreateTopicRule CreateTopicRule

arn:aws:iot:region:account-id:rule/rule-name

iot:DeleteAuthorizer DeleteAuthorizer

arn:aws:iot:region:account-id:authorizer/authorizer-name

iot:DeleteCACertificate DeleteCACertificate

arn:aws:iot:region:account-id:cacert/cert-id

iot:DeleteCertificate DeleteCertificate

arn:aws:iot:region:account-id:cert/cert-id

iot:DeleteJob DeleteJob

arn:aws:iot:region:account-id:job/job-id

iot:DeleteJobExecution DeleteJobExecution

arn:aws:iot:region:account-id:job/job-id

arn:aws:iot:region:account-id:thing/thing-name

iot:DeleteJobTemplate DeleteJobTemplate

arn:aws:iot:region:account-id:jobtemplate/job-template-id

iot:DeletePolicy DeletePolicy

arn:aws:iot:region:account-id:policy/policy-name

iot:DeletePolicyVersion DeletePolicyVersion

arn:aws:iot:region:account-id:policy/policy-name

iot:DeleteRegistrationCode DeleteRegistrationCode *
iot:DeleteRoleAlias DeleteRoleAlias

arn:aws:iot:region:account-id:rolealias/role-alias-name

iot:DeleteThing DeleteThing

arn:aws:iot:region:account-id:thing/thing-name

iot:DeleteThingGroup DeleteThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

iot:DeleteThingType DeleteThingType

arn:aws:iot:region:account-id:thingtype/thing-type-name

iot:DeleteTopicRule DeleteTopicRule

arn:aws:iot:region:account-id:rule/rule-name

iot:DeleteV2LoggingLevel DeleteV2LoggingLevel

arn:aws:iot:region:account-id:thinggroup/thing-group-name

iot:DeprecateThingType DeprecateThingType

arn:aws:iot:region:account-id:thingtype/thing-type-name

iot:DescribeAuthorizer DescribeAuthorizer

arn:aws:iot:region:account-id:authorizer/authorizer-function-name

(parameter: authorizerName)

none
iot:DescribeCACertificate DescribeCACertificate

arn:aws:iot:region:account-id:cacert/cert-id

iot:DescribeCertificate DescribeCertificate

arn:aws:iot:region:account-id:cert/cert-id

iot:DescribeDefaultAuthorizer DescribeDefaultAuthorizer None
iot:DescribeEndpoint DescribeEndpoint *
iot:DescribeEventConfigurations DescribeEventConfigurations none
iot:DescribeIndex DescribeIndex

arn:aws:iot:region:account-id:index/index-name

iot:DescribeJob DescribeJob

arn:aws:iot:region:account-id:job/job-id

iot:DescribeJobExecution DescribeJobExecution None
iot:DescribeJobTemplate DescribeJobTemplate

arn:aws:iot:region:account-id:jobtemplate/job-template-id

iot:DescribeRoleAlias DescribeRoleAlias

arn:aws:iot:region:account-id:rolealias/role-alias-name

iot:DescribeThing DescribeThing

arn:aws:iot:region:account-id:thing/thing-name

iot:DescribeThingGroup DescribeThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

iot:DescribeThingRegistrationTask DescribeThingRegistrationTask None
iot:DescribeThingType DescribeThingType

arn:aws:iot:region:account-id:thingtype/thing-type-name

iot:DetachPolicy DetachPolicy

arn:aws:iot:region:account-id:cert/cert-id

or

arn:aws:iot:region:account-id:thinggroup/thing-group-name

iot:DetachPrincipalPolicy DetachPrincipalPolicy

arn:aws:iot:region:account-id:cert/cert-id

iot:DetachThingPrincipal DetachThingPrincipal

arn:aws:iot:region:account-id:cert/cert-id

iot:DisableTopicRule DisableTopicRule

arn:aws:iot:region:account-id:rule/rule-name

iot:EnableTopicRule EnableTopicRule

arn:aws:iot:region:account-id:rule/rule-name

iot:GetEffectivePolicies GetEffectivePolicies

arn:aws:iot:region:account-id:cert/cert-id

iot:GetIndexingConfiguration GetIndexingConfiguration None
iot:GetJobDocument GetJobDocument

arn:aws:iot:region:account-id:job/job-id

iot:GetLoggingOptions GetLoggingOptions *
iot:GetPolicy GetPolicy

arn:aws:iot:region:account-id:policy/policy-name

iot:GetPolicyVersion GetPolicyVersion

arn:aws:iot:region:account-id:policy/policy-name

iot:GetRegistrationCode GetRegistrationCode *
iot:GetTopicRule GetTopicRule

arn:aws:iot:region:account-id:rule/rule-name

iot:ListAttachedPolicies ListAttachedPolicies

arn:aws:iot:region:account-id:thinggroup/thing-group-name

or

arn:aws:iot:region:account-id:cert/cert-id

iot:ListAuthorizers ListAuthorizers None
iot:ListCACertificates ListCACertificates *
iot:ListCertificates ListCertificates *
iot:ListCertificatesByCA ListCertificatesByCA *
iot:ListIndices ListIndices None
iot:ListJobExecutionsForJob ListJobExecutionsForJob None
iot:ListJobExecutionsForThing ListJobExecutionsForThing None
iot:ListJobs ListJobs

arn:aws:iot:region:account-id:thinggroup/thing-group-name

if thingGroupName parameter used

iot:ListJobTemplates ListJobTemplates None
iot:ListOutgoingCertificates ListOutgoingCertificates *
iot:ListPolicies ListPolicies *
iot:ListPolicyPrincipals ListPolicyPrincipals

arn:aws:iot:region:account-id:policy/policy-name

iot:ListPolicyVersions ListPolicyVersions

arn:aws:iot:region:account-id:policy/policy-name

iot:ListPrincipalPolicies ListPrincipalPolicies

arn:aws:iot:region:account-id:cert/cert-id

iot:ListPrincipalThings ListPrincipalThings

arn:aws:iot:region:account-id:cert/cert-id

iot:ListRoleAliases ListRoleAliases None
iot:ListTargetsForPolicy ListTargetsForPolicy

arn:aws:iot:region:account-id:policy/policy-name

iot:ListThingGroups ListThingGroups None
iot:ListThingGroupsForThing ListThingGroupsForThing

arn:aws:iot:region:account-id:thing/thing-name

iot:ListThingPrincipals ListThingPrincipals

arn:aws:iot:region:account-id:thing/thing-name

iot:ListThingRegistrationTaskReports ListThingRegistrationTaskReports None
iot:ListThingRegistrationTasks ListThingRegistrationTasks None
iot:ListThingTypes ListThingTypes *
iot:ListThings ListThings *
iot:ListThingsInThingGroup ListThingsInThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

iot:ListTopicRules ListTopicRules *
iot:ListV2LoggingLevels ListV2LoggingLevels None
iot:RegisterCACertificate RegisterCACertificate *
iot:RegisterCertificate RegisterCertificate *
iot:RegisterThing RegisterThing None
iot:RejectCertificateTransfer RejectCertificateTransfer

arn:aws:iot:region:account-id:cert/cert-id

iot:RemoveThingFromThingGroup RemoveThingFromThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

arn:aws:iot:region:account-id:thing/thing-name

iot:ReplaceTopicRule ReplaceTopicRule

arn:aws:iot:region:account-id:rule/rule-name

iot:SearchIndex SearchIndex

arn:aws:iot:region:account-id:index/index-id

iot:SetDefaultAuthorizer SetDefaultAuthorizer

arn:aws:iot:region:account-id:authorizer/authorizer-function-name

iot:SetDefaultPolicyVersion SetDefaultPolicyVersion

arn:aws:iot:region:account-id:policy/policy-name

iot:SetLoggingOptions SetLoggingOptions *
iot:SetV2LoggingLevel SetV2LoggingLevel *
iot:SetV2LoggingOptions SetV2LoggingOptions *
iot:StartThingRegistrationTask StartThingRegistrationTask None
iot:StopThingRegistrationTask StopThingRegistrationTask None
iot:TestAuthorization TestAuthorization

arn:aws:iot:region:account-id:cert/cert-id

iot:TestInvokeAuthorizer TestInvokeAuthorizer None
iot:TransferCertificate TransferCertificate

arn:aws:iot:region:account-id:cert/cert-id

iot:UpdateAuthorizer UpdateAuthorizer

arn:aws:iot:region:account-id:authorizerfunction/authorizer-function-name

iot:UpdateCACertificate UpdateCACertificate

arn:aws:iot:region:account-id:cacert/cert-id

iot:UpdateCertificate UpdateCertificate

arn:aws:iot:region:account-id:cert/cert-id

iot:UpdateEventConfigurations UpdateEventConfigurations None
iot:UpdateIndexingConfiguration UpdateIndexingConfiguration None
iot:UpdateRoleAlias UpdateRoleAlias

arn:aws:iot:region:account-id:rolealias/role-alias-name

iot:UpdateThing UpdateThing

arn:aws:iot:region:account-id:thing/thing-name

iot:UpdateThingGroup UpdateThingGroup

arn:aws:iot:region:account-id:thinggroup/thing-group-name

iot:UpdateThingGroupsForThing UpdateThingGroupsForThing

arn:aws:iot:region:account-id:thing/thing-name

For more information about the format of ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

Some AWS IoT actions, such as those for creating resources, cannot be performed on a specific resource. In those cases, you must use the wildcard (*).

"Resource": "*"

To see a list of AWS IoT resource types and their ARNs, see Resources Defined by AWS IoT in the IAM User Guide. To learn with which actions you can specify the ARN of each resource, see Actions Defined by AWS IoT.

Device Advisor resources

To define resource-level restrictions for AWS IoT Device Advisor IAM policies, use the following resource ARN formats for suite definitions and suite runs.

Suite definition resource ARN format

arn:aws:iotdeviceadvisor:region:account-id:suitedefinition/suite-definition-id

Suite run resource ARN format

arn:aws:iotdeviceadvisor:region:account-id:suiterun/suite-definition-id/suite-run-id

Condition keys

Administrators can use AWS JSON policies to specify who has access to what. That is, which principal can perform actions on what resources, and under what conditions.

The Condition element (or Condition block) lets you specify conditions in which a statement is in effect. The Condition element is optional. You can create conditional expressions that use condition operators, such as equals or less than, to match the condition in the policy with values in the request.

If you specify multiple Condition elements in a statement, or multiple keys in a single Condition element, AWS evaluates them using a logical AND operation. If you specify multiple values for a single condition key, AWS evaluates the condition using a logical OR operation. All of the conditions must be met before the statement's permissions are granted.

You can also use placeholder variables when you specify conditions. For example, you can grant an IAM user permission to access a resource only if it is tagged with their IAM user name. For more information, see IAM policy elements: variables and tags in the IAM User Guide.

AWS supports global condition keys and service-specific condition keys. To see all AWS global condition keys, see AWS global condition context keys in the IAM User Guide.

AWS IoT defines its own set of condition keys and also supports using some global condition keys. To see all AWS global condition keys, see AWS Global Condition Context Keys in the IAM User Guide.

AWS IoT condition keys
AWS IoT condition keys Description Type
aws:RequestTag/${tag-key} A tag key that is present in the request that the user makes to AWS IoT. String
aws:ResourceTag/${tag-key} The tag key component of a tag attached to an AWS IoT resource. String
aws:TagKeys The list of all the tag key names associated with the resource in the request. String

To see a list of AWS IoT condition keys, see Condition Keys for AWS IoT in the IAM User Guide. To learn with which actions and resources you can use a condition key, see Actions Defined by AWS IoT.

Examples

To view examples of AWS IoT identity-based policies, see AWS IoT identity-based policy examples.

AWS IoT resource-based policies

Resource-based policies are JSON policy documents that specify what actions a specified principal can perform on the AWS IoT resource and under what conditions.

AWS IoT does not support IAM resource-based policies. It does, however, support AWS IoT resource-based policies. For more information, see AWS IoT Core policies.

Authorization based on AWS IoT tags

You can attach tags to AWS IoT resources or pass tags in a request to AWS IoT. To control access based on tags, you provide tag information in the condition element of a policy using the iot:ResourceTag/key-name, aws:RequestTag/key-name, or aws:TagKeys condition keys. For more information, see Using tags with IAM policies. For more information about tagging AWS IoT resources, see Tagging your AWS IoT resources.

To view an example identity-based policy for limiting access to a resource based on the tags on that resource, see Viewing AWS IoT resources based on tags.

AWS IoT IAM roles

An IAM role is an entity within your AWS account that has specific permissions.

Using temporary credentials with AWS IoT

You can use temporary credentials to sign in with federation, assume an IAM role, or to assume a cross-account role. You obtain temporary security credentials by calling AWS STS API operations such as AssumeRole or GetFederationToken.

AWS IoT supports using temporary credentials.

Service-linked roles

Service-linked roles allow AWS services to access resources in other services to complete an action on your behalf. Service-linked roles appear in your IAM account and are owned by the service. An IAM administrator can view but not edit the permissions for service-linked roles.

AWS IoT does not supports service-linked roles.

Service roles

This feature allows a service to assume a service role on your behalf. This role allows the service to access resources in other services to complete an action on your behalf. Service roles appear in your IAM account and are owned by the account. This means that an IAM administrator can change the permissions for this role. However, doing so might break the functionality of the service.