View a markdown version of this page

Actions, resources, and condition keys for AWS IoT Greengrass V2 - Service Authorization Reference

Actions, resources, and condition keys for AWS IoT Greengrass V2

AWS IoT Greengrass V2 (service prefix: greengrass) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

API operations defined by AWS IoT Greengrass V2

The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.

Operation IAM action Condition key Possible value(s) Access level

AssociateServiceRoleToAccount

greengrass:AssociateServiceRoleToAccount

Permissions management, Write

iam:PassRole

iam:PassedToService

greengrass.amazonaws.com

Write

BatchAssociateClientDeviceWithCoreDevice

greengrass:BatchAssociateClientDeviceWithCoreDevice

Write

BatchDisassociateClientDeviceFromCoreDevice

greengrass:BatchDisassociateClientDeviceFromCoreDevice

Write

CancelDeployment

greengrass:CancelDeployment

Write

CreateComponentVersion

greengrass:CreateComponentVersion

Write

greengrass:TagResource

Tagging, Write

CreateDeployment

greengrass:CreateDeployment

Write

greengrass:TagResource

Tagging, Write

DeleteComponent

greengrass:DeleteComponent

Write

DeleteCoreDevice

greengrass:DeleteCoreDevice

Write

DeleteDeployment

greengrass:DeleteDeployment

Write

DescribeComponent

greengrass:DescribeComponent

Read

DisassociateServiceRoleFromAccount

greengrass:DisassociateServiceRoleFromAccount

Write

GetComponent

greengrass:GetComponent

Read

GetComponentVersionArtifact

greengrass:GetComponentVersionArtifact

Read

GetConnectivityInfo

greengrass:GetConnectivityInfo

Read

GetCoreDevice

greengrass:GetCoreDevice

Read

GetDeployment

greengrass:GetDeployment

Read

GetServiceRoleForAccount

greengrass:GetServiceRoleForAccount

Read

ListClientDevicesAssociatedWithCoreDevice

greengrass:ListClientDevicesAssociatedWithCoreDevice

List

ListComponentVersions

greengrass:ListComponentVersions

List

ListComponents

greengrass:ListComponents

List

ListCoreDevices

greengrass:ListCoreDevices

List

ListDeployments

greengrass:ListDeployments

List

ListEffectiveDeployments

greengrass:ListEffectiveDeployments

List

ListInstalledComponents

greengrass:ListInstalledComponents

List

ListTagsForResource

greengrass:ListTagsForResource

Read

TagResource

greengrass:TagResource

Tagging, Write

UntagResource

greengrass:UntagResource

Tagging, Write

UpdateConnectivityInfo

greengrass:UpdateConnectivityInfo

Write

Actions defined by AWS IoT Greengrass V2

You can specify the following actions in the Action element of an IAM policy statement. Use policies to grant permissions to perform an operation in AWS. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions.

Actions Description Resource types (*required) Condition keys Access level

AssociateServiceRoleToAccount

Grants permission to associate a role with your account. AWS IoT Greengrass uses this role to access your Lambda functions and AWS IoT resources

Permissions management, Write

BatchAssociateClientDeviceWithCoreDevice

Grants permission to associate a list of client devices with a core device

coreDevice*

aws:ResourceTag/${TagKey}

Write

BatchDisassociateClientDeviceFromCoreDevice

Grants permission to disassociate a list of client devices from a core device

coreDevice*

aws:ResourceTag/${TagKey}

Write

CancelDeployment

Grants permission to cancel a deployment

deployment*

aws:ResourceTag/${TagKey}

Write

CreateComponentVersion

Grants permission to create a component

component*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

CreateDeployment

Grants permission to create a deployment