Skip to main content
IAM Policy Map

AWSGreengrassResourceAccessRolePolicy

AdminService roleActivePermissions reviewedShow on mapCompare

Summary

Policy for AWS Greengrass service role which allows access to related services including AWS Lambda and AWS IoT thing shadows.

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/service-role/AWSGreengrassResourceAccessRolePolicy
Default version
v5
Created
Last edited
Services
greengrass, iot, lambda, s3, sagemaker, secretsmanager

Control-plane actions (122)

By access level: 26 List, 1 Permissions management, 40 Read, 2 Tagging, 53 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
IoT GreengrassAll 112 actions (see the IoT Greengrass page)26 List, 1 Permissions management, 32 Read, 2 Tagging, 51 Write; 0 restricted, 0 conditionalgreengrass:*
IoT5 of 2933 Read, 2 Write; 5 restricted, 0 conditionaliot:DeleteThingShadow, iot:DescribeCertificate, iot:DescribeThing, iot:GetThingShadow, iot:UpdateThingShadow
Lambda2 of 1212 Read; 0 restricted, 0 conditionallambda:GetFunction, lambda:GetFunctionConfiguration
S31 of 1551 Read; 0 restricted, 0 conditionals3:GetBucketLocation
SageMaker1 of 4411 Read; 1 restricted, 0 conditionalsagemaker:DescribeTrainingJob
Secrets Manager1 of 271 Read; 1 restricted, 0 conditionalsecretsmanager:GetSecretValue
IoT: 5 actions
  • iot:DeleteThingShadow (Write)
  • iot:DescribeCertificate (Read)
  • iot:DescribeThing (Read)
  • iot:GetThingShadow (Read)
  • iot:UpdateThingShadow (Write)
Lambda: 2 actions
  • lambda:GetFunction (Read)
  • lambda:GetFunctionConfiguration (Read)
S3: 1 actions
  • s3:GetBucketLocation (Read)
SageMaker: 1 actions
  • sagemaker:DescribeTrainingJob (Read)
Secrets Manager: 1 actions
  • secretsmanager:GetSecretValue (Read)

Data-plane actions (1)

By access level: 1 Read.

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
S31 of 251 Read; 1 restricted, 0 conditionals3:GetObject
S3: 1 actions
  • s3:GetObject (Read)

Excluded and conditional actions

No patterns are excluded by NotAction or Deny statements.

Resource scope and attachment

Resource scope across granted actions: mixed.

Can be attached: Yes, to users, groups and roles.

Why this tier

  • Grants at least 80% of the write and permissions-management actions of: greengrass (52 of 52).

Guidance

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Same service

Same domain

Frequently asked questions

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Policy JSON

Download policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowGreengrassAccessToShadows",
      "Action": [
        "iot:DeleteThingShadow",
        "iot:GetThingShadow",
        "iot:UpdateThingShadow"
      ],
      "Effect": "Allow",
      "Resource": [
        "arn:aws:iot:*:*:thing/GG_*",
        "arn:aws:iot:*:*:thing/*-gcm",
        "arn:aws:iot:*:*:thing/*-gda",
        "arn:aws:iot:*:*:thing/*-gci"
      ]
    },
    {
      "Sid": "AllowGreengrassToDescribeThings",
      "Action": [
        "iot:DescribeThing"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:iot:*:*:thing/*"
    },
    {
      "Sid": "AllowGreengrassToDescribeCertificates",
      "Action": [
        "iot:DescribeCertificate"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:iot:*:*:cert/*"
    },
    {
      "Sid": "AllowGreengrassToCallGreengrassServices",
      "Action": [
        "greengrass:*"
      ],
      "Effect": "Allow",
      "Resource": "*"
    },
    {
      "Sid": "AllowGreengrassToGetLambdaFunctions",
      "Action": [
        "lambda:GetFunction",
        "lambda:GetFunctionConfiguration"
      ],
      "Effect": "Allow",
      "Resource": "*"
    },
    {
      "Sid": "AllowGreengrassToGetGreengrassSecrets",
      "Action": [
        "secretsmanager:GetSecretValue"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:secretsmanager:*:*:secret:greengrass-*"
    },
    {
      "Sid": "AllowGreengrassAccessToS3Objects",
      "Action": [
        "s3:GetObject"
      ],
      "Effect": "Allow",
      "Resource": [
        "arn:aws:s3:::*Greengrass*",
        "arn:aws:s3:::*GreenGrass*",
        "arn:aws:s3:::*greengrass*",
        "arn:aws:s3:::*Sagemaker*",
        "arn:aws:s3:::*SageMaker*",
        "arn:aws:s3:::*sagemaker*"
      ]
    },
    {
      "Sid": "AllowGreengrassAccessToS3BucketLocation",
      "Action": [
        "s3:GetBucketLocation"
      ],
      "Effect": "Allow",
      "Resource": "*"
    },
    {
      "Sid": "AllowGreengrassAccessToSageMakerTrainingJobs",
      "Action": [
        "sagemaker:DescribeTrainingJob"
      ],
      "Effect": "Allow",
      "Resource": [
        "arn:aws:sagemaker:*:*:training-job/*"
      ]
    }
  ]
}

Version history

Current version v5, edited by AWS on 2018-11-14. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.

Attach snippets

AWS CLI

aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AWSGreengrassResourceAccessRolePolicy
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AWSGreengrassResourceAccessRolePolicy
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AWSGreengrassResourceAccessRolePolicy

CloudFormation

Resources:
  ExampleRole:
    Type: AWS::IAM::Role
    Properties:
      AssumeRolePolicyDocument: {}  # replace with your trust policy
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AWSGreengrassResourceAccessRolePolicy

Terraform

resource "aws_iam_role_policy_attachment" "service_role_awsgreengrassresourceaccessrolepolicy" {
  role       = aws_iam_role.example.name
  policy_arn = "arn:aws:iam::aws:policy/service-role/AWSGreengrassResourceAccessRolePolicy"
}

CDK (TypeScript)

role.addManagedPolicy(
  iam.ManagedPolicy.fromAwsManagedPolicyName("service-role/AWSGreengrassResourceAccessRolePolicy"),
);

Sources

Pending editorial review. No editorial sources are listed yet.