greengrass:AssociateRoleToGroup

Write

greengrass:AssociateRoleToGroup is a Write access-level action in the greengrass service. Grants permission to associate a role with a group. The role's permissions must allow Greengrass core Lambda functions and connectors to perform actions in other AWS services

Resource types

ARNs that greengrass:AssociateRoleToGroup can be scoped to in an IAM policy.

arn:${Partition}:greengrass:${Region}:${Account}:/greengrass/groups/${GroupId}
group

Condition keys

Keys you can use in the Condition block of a policy that grants greengrass:AssociateRoleToGroup.

aws:ResourceTag/${TagKey} String

Filters access by the tag value associated with the resource

Example IAM policy

A minimal policy that allows greengrass:AssociateRoleToGroup. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowGreengrassAssociateRoleToGroup",
      "Effect": "Allow",
      "Action": "greengrass:AssociateRoleToGroup",
      "Resource": "*"
    }
  ]
}

Related actions in greengrass

View all greengrass actions →