기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
에서 IAM을 AWS IoT사용하는 방법
IAM을 사용하여에 대한 액세스를 관리하기 전에 사용할 수 있는 IAM 기능을 이해해야 AWS IoT합니다AWS IoT. AWS IoT및 기타 AWS서비스에서 IAM을 사용하는 방법을 전체적으로 알아보려면 IAM 사용 설명서의 AWSIAM으로 작업하는 서비스를 참조하세요.
AWS IoT ID 기반 정책
IAM ID 기반 정책을 사용하면 허용되거나 거부되는 작업과 리소스 및 작업이 허용되거나 거부되는 조건을 지정할 수 있습니다. AWS IoT는 특정 작업, 리소스 및 조건 키를 지원합니다. JSON 정책에서 사용하는 모든 요소에 대해 알고 싶다면 IAM 사용 설명서의 IAM JSON 정책 요소 참조를 참조하세요.
작업
관리자는 AWSJSON 정책을 사용하여 누가 무엇에 액세스할 수 있는지 지정할 수 있습니다. 즉, 어떤 엔터티가 어떤 리소스와 어떤 조건에서 작업을 수행할 수 있는지를 지정할 수 있습니다.
JSON 정책의 Action요소는 정책에서 액세스를 허용하거나 거부하는 데 사용할 수 있는 작업을 설명합니다. 연결된 작업을 수행할 수 있는 권한을 부여하기 위한 정책에 작업을 포함하세요.
다음 표에는 IAM IoT 작업, 연결된 AWS IoTAPI 및 작업이 조작하는 리소스가 나열되어 있습니다.
| 정책 작업 | AWS IoTAPI | 리소스 |
|---|---|---|
| iot:AcceptCertificateTransfer | AcceptCertificateTransfer |
참고ARN에 AWS 계정지정된는 인증서가 전송되는 계정이어야 합니다. |
| iot:AddThingToThingGroup | AddThingToThingGroup |
|
| iot:AssociateTargetsWithJob | AssociateTargetsWithJob | 없음 |
| iot:AttachPolicy | AttachPolicy |
또는
|
| iot:AttachPrincipalPolicy | AttachPrincipalPolicy |
|
| iot:AttachSecurityProfile | AttachSecurityProfile |
|
| iot:AttachThingPrincipal | AttachThingPrincipal |
|
| iot:CancelCertificateTransfer | CancelCertificateTransfer |
참고ARN에 AWS 계정지정된는 인증서가 전송되는 계정이어야 합니다. |
| iot:CancelJob | CancelJob |
|
| iot:CancelJobExecution | CancelJobExecution |
|
| iot:ClearDefaultAuthorizer | ClearDefaultAuthorizer | 없음 |
| iot:CreateAuthorizer | CreateAuthorizer |
|
| iot:CreateCertificateFromCsr | CreateCertificateFromCsr | * |
| iot:CreateDimension | CreateDimension |
|
| iot:CreateJob | CreateJob |
|
| iot:CreateJobTemplate | CreateJobTemplate |
|
| iot:CreateKeysAndCertificate | CreateKeysAndCertificate | * |
| iot:CreatePolicy | CreatePolicy |
|
| iot:CreatePolicyVersion | CreatePolicyVersion |
참고이는 IAM AWS IoT정책이 아닌 정책이어야 합니다. |
| iot:CreateRoleAlias | CreateRoleAlias |
(파라미터: roleAlias)
|
| iot:CreateSecurityProfile | CreateSecurityProfile |
|
| iot:CreateThing | CreateThing |
|
| iot:CreateThingGroup | CreateThingGroup |
사용할 경우 생성 그룹 및 상위 그룹에 필요 |
| iot:CreateThingType | CreateThingType |
|
| iot:CreateTopicRule | CreateTopicRule |
|
| iot:DeleteAuthorizer | DeleteAuthorizer |
|
| iot:DeleteCACertificate | DeleteCACertificate |
|
| iot:DeleteCertificate | DeleteCertificate |
|
| iot:DeleteDimension | DeleteDimension |
|
| iot:DeleteJob | DeleteJob |
|
| iot:DeleteJobTemplate | DeleteJobTemplate |
|
| iot:DeleteJobExecution | DeleteJobExecution |
|
| iot:DeletePolicy | DeletePolicy |
|
| iot:DeletePolicyVersion | DeletePolicyVersion |
|
| iot:DeleteRegistrationCode | DeleteRegistrationCode | * |
| iot:DeleteRoleAlias | DeleteRoleAlias |
|
| iot:DeleteSecurityProfile | DeleteSecurityProfile |
|
| iot:DeleteThing | DeleteThing |
|
| iot:DeleteThingGroup | DeleteThingGroup |
|
| iot:DeleteThingType | DeleteThingType |
|
| iot:DeleteTopicRule | DeleteTopicRule |
|
| iot:DeleteV2LoggingLevel | DeleteV2LoggingLevel |
|
| iot:DeprecateThingType | DeprecateThingType |
|
| iot:DescribeAuthorizer | DescribeAuthorizer |
(파라미터: authorizerName) 없음 |
| iot:DescribeCACertificate | DescribeCACertificate |
|
| iot:DescribeCertificate | DescribeCertificate |
|
| iot:DescribeDefaultAuthorizer | DescribeDefaultAuthorizer | 없음 |
| iot:DescribeEndpoint | DescribeEndpoint | * |
| iot:DescribeEventConfigurations | DescribeEventConfigurations | 없음 |
| iot:DescribeIndex | DescribeIndex |
|
| iot:DescribeJob | DescribeJob |
|
| iot:DescribeJobExecution | DescribeJobExecution | 없음 |
| iot:DescribeJobTemplate | DescribeJobTemplate |
|
| iot:DescribeRoleAlias | DescribeRoleAlias |
|
| iot:DescribeThing | DescribeThing |
|
| iot:DescribeThingGroup | DescribeThingGroup |
|
| iot:DescribeThingRegistrationTask | DescribeThingRegistrationTask | 없음 |
| iot:DescribeThingType | DescribeThingType |
|
| iot:DetachPolicy | DetachPolicy |
또는
|
| iot:DetachPrincipalPolicy | DetachPrincipalPolicy |
|
| iot:DetachSecurityProfile | DetachSecurityProfile |
|
| iot:DetachThingPrincipal | DetachThingPrincipal |
|
| iot:DisableTopicRule | DisableTopicRule |
|
| iot:EnableTopicRule | EnableTopicRule |
|
| iot:GetEffectivePolicies | GetEffectivePolicies |
|
| iot:GetIndexingConfiguration | GetIndexingConfiguration | 없음 |
| iot:GetJobDocument | GetJobDocument |
|
| iot:GetLoggingOptions | GetLoggingOptions | * |
| iot:GetPolicy | GetPolicy |
|
| iot:GetPolicyVersion | GetPolicyVersion |
|
| iot:GetRegistrationCode | GetRegistrationCode | * |
| iot:GetTopicRule | GetTopicRule |
|
| iot:ListAttachedPolicies | ListAttachedPolicies |
또는
|
| iot:ListAuthorizers | ListAuthorizers | 없음 |
| iot:ListCACertificates | ListCACertificates | * |
| iot:ListCertificates | ListCertificates | * |
| iot:ListCertificatesByCA | ListCertificatesByCA | * |
| iot:ListIndices | ListIndices | 없음 |
| iot:ListJobExecutionsForJob | ListJobExecutionsForJob | 없음 |
| iot:ListJobExecutionsForThing | ListJobExecutionsForThing | 없음 |
| iot:ListJobs | ListJobs |
thingGroupName 파라미터를 사용하는 경우 |
| iot:ListJobTemplates | ListJobs | 없음 |
| iot:ListOutgoingCertificates | ListOutgoingCertificates | * |
| iot:ListPolicies | ListPolicies | * |
| iot:ListPolicyPrincipals | ListPolicyPrincipals | * |
| iot:ListPolicyVersions | ListPolicyVersions |
|
| iot:ListPrincipalPolicies | ListPrincipalPolicies |
|
| iot:ListPrincipalThings | ListPrincipalThings |
|
| iot:ListRoleAliases | ListRoleAliases | 없음 |
| iot:ListTargetsForPolicy | ListTargetsForPolicy |
|
| iot:ListThingGroups | ListThingGroups | 없음 |
| iot:ListThingGroupsForThing | ListThingGroupsForThing |
|
| iot:ListThingPrincipals | ListThingPrincipals |
|
| iot:ListThingRegistrationTaskReports | ListThingRegistrationTaskReports | 없음 |
| iot:ListThingRegistrationTasks | ListThingRegistrationTasks | 없음 |
| iot:ListThingTypes | ListThingTypes | * |
| iot:ListThings | ListThings | * |
| iot:ListThingsInThingGroup | ListThingsInThingGroup |
|
| iot:ListTopicRules | ListTopicRules | * |
| iot:ListV2LoggingLevels | ListV2LoggingLevels | 없음 |
| iot:RegisterCACertificate | RegisterCACertificate | * |
| iot:RegisterCertificate | RegisterCertificate | * |
| iot:RegisterThing | RegisterThing | 없음 |
| iot:RejectCertificateTransfer | RejectCertificateTransfer |
|
| iot:RemoveThingFromThingGroup | RemoveThingFromThingGroup |
|
| iot:ReplaceTopicRule | ReplaceTopicRule |
|
| iot:SearchIndex | SearchIndex |
|
| iot:SetDefaultAuthorizer | SetDefaultAuthorizer |
|
| iot:SetDefaultPolicyVersion | SetDefaultPolicyVersion |
|
| iot:SetLoggingOptions | SetLoggingOptions |
|
| iot:SetV2LoggingLevel | SetV2LoggingLevel |
|
| iot:SetV2LoggingOptions | SetV2LoggingOptions |
|
| iot:StartThingRegistrationTask | StartThingRegistrationTask | 없음 |
| iot:StopThingRegistrationTask | StopThingRegistrationTask | 없음 |
| iot:TestAuthorization | TestAuthorization |
|
| iot:TestInvokeAuthorizer | TestInvokeAuthorizer | 없음 |
| iot:TransferCertificate | TransferCertificate |
|
| iot:UpdateAuthorizer | UpdateAuthorizer |
|
| iot:UpdateCACertificate | UpdateCACertificate |
|
| iot:UpdateCertificate | UpdateCertificate |
|
| iot:UpdateDimension | UpdateDimension |
|
| iot:UpdateEventConfigurations | UpdateEventConfigurations | 없음 |
| iot:UpdateIndexingConfiguration | UpdateIndexingConfiguration | 없음 |
| iot:UpdateRoleAlias | UpdateRoleAlias |
|
| iot:UpdateSecurityProfile | UpdateSecurityProfile |
|
| iot:UpdateThing | UpdateThing |
|
| iot:UpdateThingGroup | UpdateThingGroup |
|
| iot:UpdateThingGroupsForThing | UpdateThingGroupsForThing |
|
의 정책 작업은 작업 앞에 접두사를 AWS IoT사용합니다iot:. 예를 들어 API를 사용하여에 등록된 모든 IoT 사물을 나열할 수 AWS 계정있는 권한을 부여하려면 해당 정책에 iot:ListThings 작업을 ListThings 포함합니다. 정책 설명에는 Action 또는 NotAction 요소가 포함되어야 합니다.는이 서비스로 수행할 수 있는 작업을 설명하는 고유한 작업 세트를 AWS IoT정의합니다.
명령문 하나에 여러 태스크를 지정하려면 다음과 같이 쉼표로 구분합니다.
"Action": [ "ec2:action1", "ec2:action2"
와일드카드(*)를 사용하여 여러 작업을 지정할 수 있습니다. 예를 들어, Describe라는 단어로 시작하는 모든 작업을 지정하려면 다음 작업을 포함합니다.
"Action": "iot:Describe*"
AWS IoT작업 목록을 보려면 IAM 사용 설명서의 에서 정의한 작업을AWS IoT 참조하세요.
Device Advisor 작업
다음 표에는 IAM IoT Device Advisor 작업, 연결된 AWS IoT Device Advisor API 및 해당 작업이 조작하는 리소스가 나열되어 있습니다.
| 정책 작업 | AWS IoTAPI | 리소스 |
|---|---|---|
| iotdeviceadvisor:CreateSuiteDefinition | CreateSuiteDefinition |
없음 |
| iotdeviceadvisor:DeleteSuiteDefinition | DeleteSuiteDefinition |
|
| iotdeviceadvisor:GetSuiteDefinition | GetSuiteDefinition |
|
| iotdeviceadvisor:GetSuiteRun | GetSuiteRun |
|
| iotdeviceadvisor:GetSuiteRunReport | GetSuiteRunReport |
|
| iotdeviceadvisor:ListSuiteDefinitions | ListSuiteDefinitions | 없음 |
| iotdeviceadvisor:ListSuiteRuns | ListSuiteRuns |
|
| iotdeviceadvisor:ListTagsForResource | ListTagsForResource |
|
| iotdeviceadvisor:StartSuiteRun | StartSuiteRun |
|
| iotdeviceadvisor:TagResource | TagResource |
|
| iotdeviceadvisor:UntagResource | UntagResource |
|
| iotdeviceadvisor:UpdateSuiteDefinition | UpdateSuiteDefinition |
|
| iotdeviceadvisor:StopSuiteRun | StopSuiteRun |
|
AWS IoTDevice Advisor의 정책 작업은 작업 앞에 접두사를 사용합니다iotdeviceadvisor:. 예를 들어 ListSuiteDefinitions API를 사용하여에 등록된 모든 제품군 정의를 나열할 수 AWS 계정있는 권한을 부여하려면 해당 정책에 iotdeviceadvisor:ListSuiteDefinitions 작업을 포함합니다.
리소스
관리자는 AWSJSON 정책을 사용하여 누가 무엇에 액세스할 수 있는지 지정할 수 있습니다. 즉, 어떤 위탁자가 어떤 리소스와 어떤 조건에서 작업을 수행할 수 있는지를 지정할 수 있습니다.
Resource JSON 정책 요소는 작업이 적용되는 하나 이상의 객체를 지정합니다. 모범 사례에 따라 Amazon 리소스 이름(ARN)을 사용하여 리소스를 지정합니다. 리소스 수준 권한을 지원하지 않는 작업의 경우, 와일드카드(*)를 사용하여 해당 문이 모든 리소스에 적용됨을 나타냅니다.
"Resource": "*"
| 정책 작업 | AWS IoTAPI | 리소스 |
|---|---|---|
| iot:AcceptCertificateTransfer | AcceptCertificateTransfer |
참고ARN에 AWS 계정지정된은 인증서가 전송되는 계정이어야 합니다. |
| iot:AddThingToThingGroup | AddThingToThingGroup |
|
| iot:AssociateTargetsWithJob | AssociateTargetsWithJob | 없음 |
| iot:AttachPolicy | AttachPolicy |
또는
|
| iot:AttachPrincipalPolicy | AttachPrincipalPolicy |
|
| iot:AttachThingPrincipal | AttachThingPrincipal |
|
| iot:CancelCertificateTransfer | CancelCertificateTransfer |
참고ARN에 AWS 계정지정된은 인증서가 전송되는 계정이어야 합니다. |
| iot:CancelJob | CancelJob |
|
| iot:CancelJobExecution | CancelJobExecution |
|
| iot:ClearDefaultAuthorizer | ClearDefaultAuthorizer | 없음 |
| iot:CreateAuthorizer | CreateAuthorizer |
|
| iot:CreateCertificateFromCsr | CreateCertificateFromCsr | * |
| iot:CreateJob | CreateJob |
|
| iot:CreateJobTemplate | CreateJobTemplate |
|
| iot:CreateKeysAndCertificate | CreateKeysAndCertificate | * |
| iot:CreatePolicy | CreatePolicy |
|
| CreatePolicyVersion | iot:CreatePolicyVersion |
참고이는 IAM AWS IoT정책이 아닌 정책이어야 합니다. |
| iot:CreateRoleAlias | CreateRoleAlias |
(파라미터: roleAlias)
|
| iot:CreateThing | CreateThing |
|
| iot:CreateThingGroup | CreateThingGroup |
사용할 경우 생성 그룹 및 상위 그룹에 필요 |
| iot:CreateThingType | CreateThingType |
|
| iot:CreateTopicRule | CreateTopicRule |
|
| iot:DeleteAuthorizer | DeleteAuthorizer |
|
| iot:DeleteCACertificate | DeleteCACertificate |
|
| iot:DeleteCertificate | DeleteCertificate |
|
| iot:DeleteJob | DeleteJob |
|
| iot:DeleteJobExecution | DeleteJobExecution |
|
| iot:DeleteJobTemplate | DeleteJobTemplate |
|
| iot:DeletePolicy | DeletePolicy |
|
| iot:DeletePolicyVersion | DeletePolicyVersion |
|
| iot:DeleteRegistrationCode | DeleteRegistrationCode | * |
| iot:DeleteRoleAlias | DeleteRoleAlias |
|
| iot:DeleteThing | DeleteThing |
|
| iot:DeleteThingGroup | DeleteThingGroup |
|
| iot:DeleteThingType | DeleteThingType |
|
| iot:DeleteTopicRule | DeleteTopicRule |
|
| iot:DeleteV2LoggingLevel | DeleteV2LoggingLevel |
|
| iot:DeprecateThingType | DeprecateThingType |
|
| iot:DescribeAuthorizer | DescribeAuthorizer |
(파라미터: authorizerName) 없음 |
| iot:DescribeCACertificate | DescribeCACertificate |
|
| iot:DescribeCertificate | DescribeCertificate |
|
| iot:DescribeDefaultAuthorizer | DescribeDefaultAuthorizer | 없음 |
| iot:DescribeEndpoint | DescribeEndpoint | * |
| iot:DescribeEventConfigurations | DescribeEventConfigurations | 없음 |
| iot:DescribeIndex | DescribeIndex |
|
| iot:DescribeJob | DescribeJob |
|
| iot:DescribeJobExecution | DescribeJobExecution | 없음 |
| iot:DescribeJobTemplate | DescribeJobTemplate |
|
| iot:DescribeRoleAlias | DescribeRoleAlias |
|
| iot:DescribeThing | DescribeThing |
|
| iot:DescribeThingGroup | DescribeThingGroup |
|
| iot:DescribeThingRegistrationTask | DescribeThingRegistrationTask | 없음 |
| iot:DescribeThingType | DescribeThingType |
|
| iot:DetachPolicy | DetachPolicy |
또는
|
| iot:DetachPrincipalPolicy | DetachPrincipalPolicy |
|
| iot:DetachThingPrincipal | DetachThingPrincipal |
|
| iot:DisableTopicRule | DisableTopicRule |
|
| iot:EnableTopicRule | EnableTopicRule |
|
| iot:GetEffectivePolicies | GetEffectivePolicies |
|
| iot:GetIndexingConfiguration | GetIndexingConfiguration | 없음 |
| iot:GetJobDocument | GetJobDocument |
|
| iot:GetLoggingOptions | GetLoggingOptions | * |
| iot:GetPolicy | GetPolicy |
|
| iot:GetPolicyVersion | GetPolicyVersion |
|
| iot:GetRegistrationCode | GetRegistrationCode | * |
| iot:GetTopicRule | GetTopicRule |
|
| iot:ListAttachedPolicies | ListAttachedPolicies |
또는
|
| iot:ListAuthorizers | ListAuthorizers | 없음 |
| iot:ListCACertificates | ListCACertificates | * |
| iot:ListCertificates | ListCertificates | * |
| iot:ListCertificatesByCA | ListCertificatesByCA | * |
| iot:ListIndices | ListIndices | 없음 |
| iot:ListJobExecutionsForJob | ListJobExecutionsForJob | 없음 |
| iot:ListJobExecutionsForThing | ListJobExecutionsForThing | 없음 |
| iot:ListJobs | ListJobs |
thingGroupName 파라미터를 사용하는 경우 |
| iot:ListJobTemplates | ListJobTemplates | 없음 |
| iot:ListOutgoingCertificates | ListOutgoingCertificates | * |
| iot:ListPolicies | ListPolicies | * |
| iot:ListPolicyPrincipals | ListPolicyPrincipals |
|
| iot:ListPolicyVersions | ListPolicyVersions |
|
| iot:ListPrincipalPolicies | ListPrincipalPolicies |
|
| iot:ListPrincipalThings | ListPrincipalThings |
|
| iot:ListRoleAliases | ListRoleAliases | 없음 |
| iot:ListTargetsForPolicy | ListTargetsForPolicy |
|
| iot:ListThingGroups | ListThingGroups | 없음 |
| iot:ListThingGroupsForThing | ListThingGroupsForThing |
|
| iot:ListThingPrincipals | ListThingPrincipals |
|
| iot:ListThingRegistrationTaskReports | ListThingRegistrationTaskReports | 없음 |
| iot:ListThingRegistrationTasks | ListThingRegistrationTasks | 없음 |
| iot:ListThingTypes | ListThingTypes | * |
| iot:ListThings | ListThings | * |
| iot:ListThingsInThingGroup | ListThingsInThingGroup |
|
| iot:ListTopicRules | ListTopicRules | * |
| iot:ListV2LoggingLevels | ListV2LoggingLevels | 없음 |
| iot:RegisterCACertificate | RegisterCACertificate | * |
| iot:RegisterCertificate | RegisterCertificate | * |
| iot:RegisterThing | RegisterThing | 없음 |
| iot:RejectCertificateTransfer | RejectCertificateTransfer |
|
| iot:RemoveThingFromThingGroup | RemoveThingFromThingGroup |
|
| iot:ReplaceTopicRule | ReplaceTopicRule |
|
| iot:SearchIndex | SearchIndex |
|
| iot:SetDefaultAuthorizer | SetDefaultAuthorizer |
|
| iot:SetDefaultPolicyVersion | SetDefaultPolicyVersion |
|
| iot:SetLoggingOptions | SetLoggingOptions | * |
| iot:SetV2LoggingLevel | SetV2LoggingLevel | * |
| iot:SetV2LoggingOptions | SetV2LoggingOptions | * |
| iot:StartThingRegistrationTask | StartThingRegistrationTask | 없음 |
| iot:StopThingRegistrationTask | StopThingRegistrationTask | 없음 |
| iot:TestAuthorization | TestAuthorization |
|
| iot:TestInvokeAuthorizer | TestInvokeAuthorizer | 없음 |
| iot:TransferCertificate | TransferCertificate |
|
| iot:UpdateAuthorizer | UpdateAuthorizer |
|
| iot:UpdateCACertificate | UpdateCACertificate |
|
| iot:UpdateCertificate | UpdateCertificate |
|
| iot:UpdateEventConfigurations | UpdateEventConfigurations | 없음 |
| iot:UpdateIndexingConfiguration | UpdateIndexingConfiguration | 없음 |
| iot:UpdateRoleAlias | UpdateRoleAlias |
|
| iot:UpdateThing | UpdateThing |
|
| iot:UpdateThingGroup | UpdateThingGroup |
|
| iot:UpdateThingGroupsForThing | UpdateThingGroupsForThing |
|
ARN 형식에 대한 자세한 내용은 Amazon 리소스 이름(ARNs) 및 AWS서비스 네임스페이스를 참조하세요.
리소스를 생성하기 위한 작업과 같은 일부 AWS IoT작업은 특정 리소스에서 수행할 수 없습니다. 이러한 경우, 와일드카드(*)를 사용해야 합니다.
"Resource": "*"
AWS IoT리소스 유형 및 해당 ARNs 목록을 보려면 IAM 사용 설명서의 에서 정의한 리소스를AWS IoT 참조하세요. 각 리소스의 ARN을 지정할 수 있는 작업을 알아보려면 AWS IoT가 정의한 작업을 참조하세요.
Device Advisor 리소스
AWS IoTDevice Advisor IAM 정책에 대한 리소스 수준 제한을 정의하려면 제품군 정의 및 제품군 실행에 다음 리소스 ARN 형식을 사용합니다.
- 스위트 정의 리소스 ARN 형식
-
arn:aws:iotdeviceadvisor:region:account-id:suitedefinition/suite-definition-id - 스위트 실행 리소스 ARN 형식
-
arn:aws:iotdeviceadvisor:region:account-id:suiterun/suite-definition-id/suite-run-id
조건 키
관리자는 AWSJSON 정책을 사용하여 누가 무엇에 액세스할 수 있는지 지정할 수 있습니다. 즉, 어떤 엔터티가 어떤 리소스와 어떤 조건에서 작업을 수행할 수 있는지를 지정할 수 있습니다.
Condition 요소는 정의된 기준에 따라 문이 실행되는 시기를 지정합니다. 같음(equals) 또는 미만(less than)과 같은 조건 연산자를 사용하여 정책의 조건을 요청의 값과 일치시키는 조건식을 생성할 수 있습니다. 모든 AWS전역 조건 키를 보려면 IAM 사용 설명서의 AWS전역 조건 컨텍스트 키를 참조하세요.
AWS IoT는 자체 조건 키 세트를 정의하고 일부 전역 조건 키 사용을 지원합니다. 모든 AWS전역 조건 키를 보려면 IAM 사용 설명서의 AWS전역 조건 컨텍스트 키를 참조하세요.
| AWS IoT조건 키 | 설명 | 형식 |
|---|---|---|
aws:RequestTag/${ |
사용자가 AWS IoT에 수행하는 요청에 있는 태그 키입니다. | 문자열 |
aws:ResourceTag/${ |
AWS IoT리소스에 연결된 태그의 태그 키 구성 요소입니다. | 문자열 |
aws:TagKeys |
요청의 리소스와 연결된 모든 태그 키 이름의 목록입니다. | 문자열 |
AWS IoT조건 키 목록을 보려면 IAM 사용 설명서의에 대한 조건 키를 참조하세요AWS IoT. 조건 키를 사용할 수 있는 작업과 리소스를 알아보려면 에서 정의한 작업을AWS IoT 참조하세요.
예제
자격 AWS IoT증명 기반 정책의 예를 보려면 섹션을 참조하세요AWS IoT자격 증명 기반 정책 예제.
AWS IoT 리소스 기반 정책
리소스 기반 정책은 지정된 보안 주체가 AWS IoT리소스에 대해 수행할 수 있는 작업과 조건을 지정하는 JSON 정책 문서입니다.
AWS IoT는 IAM 리소스 기반 정책을 지원하지 않습니다. 그러나 AWS IoT리소스 기반 정책을 지원합니다. 자세한 내용은 AWS IoT Core정책 단원을 참조하십시오.
AWS IoT 태그 기반 인증
AWS IoT리소스에 태그를 연결하거나 요청에서 태그를에 전달할 수 있습니다AWS IoT. 태그에 근거하여 액세스를 제어하려면 iot:ResourceTag/, key-nameaws:RequestTag/또는 key-nameaws:TagKeys조건 키를 사용하여 정책의 조건 요소에 태그 정보를 제공합니다. 자세한 내용은 IAM 정책에 태그 사용 단원을 참조하십시오. AWS IoT리소스 태그 지정에 대한 자세한 내용은 섹션을 참조하세요AWS IoT리소스에 태그 지정.
리소스의 태그를 기반으로 리소스에 대한 액세스를 제한하는 자격 증명 기반 정책의 예시는 태그를 기반으로 AWS IoT 리소스 보기에서 확인할 수 있습니다.
AWS IoTIAM 역할
IAM 역할은 특정 권한이 AWS 계정있는 내의 엔터티입니다.
에서 임시 자격 증명 사용AWS IoT
임시 보안 인증을 사용하여 페더레이션을 통해 로그인하거나, IAM 역할을 맡거나, 교차 계정 역할을 맡을 수 있습니다. AssumeRole 또는 GetFederationToken과 같은 AWS STSAPI 작업을 호출하여 임시 보안 자격 증명을 얻습니다.
AWS IoT는 임시 자격 증명 사용을 지원합니다.
서비스 연결 역할
서비스 연결 역할을 사용하면 AWS서비스가 다른 서비스의 리소스에 액세스하여 사용자를 대신하여 작업을 완료할 수 있습니다. 서비스 연결 역할은 IAM 계정에 나타나고 서비스가 소유합니다. IAM 관리자는 서비스 연결 역할의 권한을 볼 수 있지만 편집할 수 없습니다.
AWS IoT는 서비스 연결 역할을 지원하지 않습니다.
서비스 역할
이 기능을 사용하면 서비스가 사용자를 대신하여 서비스 역할을 수임할 수 있습니다. 이 역할을 사용하면 서비스가 다른 서비스의 리소스에 액세스해 사용자를 대신해 작업을 완료할 수 있습니다. 서비스 역할은 IAM 계정에 나타나고, 해당 계정이 소유합니다. 즉, IAM 관리자가 이 역할에 대한 권한을 변경할 수 있습니다. 그러나 권한을 변경하면 서비스의 기능이 손상될 수 있습니다.