AWSGreengrassResourceAccessRolePolicy
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.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| IoT Greengrass | All 112 actions (see the IoT Greengrass page) | 26 List, 1 Permissions management, 32 Read, 2 Tagging, 51 Write; 0 restricted, 0 conditional | greengrass:* |
| IoT | 5 of 293 | 3 Read, 2 Write; 5 restricted, 0 conditional | iot:DeleteThingShadow, iot:DescribeCertificate, iot:DescribeThing, iot:GetThingShadow, iot:UpdateThingShadow |
| Lambda | 2 of 121 | 2 Read; 0 restricted, 0 conditional | lambda:GetFunction, lambda:GetFunctionConfiguration |
| S3 | 1 of 155 | 1 Read; 0 restricted, 0 conditional | s3:GetBucketLocation |
| SageMaker | 1 of 441 | 1 Read; 1 restricted, 0 conditional | sagemaker:DescribeTrainingJob |
| Secrets Manager | 1 of 27 | 1 Read; 1 restricted, 0 conditional | secretsmanager: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.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| S3 | 1 of 25 | 1 Read; 1 restricted, 0 conditional | s3: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.
Related policies
Same service
- AWSDeepLensServiceRolePolicy
- AWSGreengrassFullAccess
- AWSGreengrassReadOnlyAccess
- AWSIoTDeviceTesterForGreengrassFullAccess
- AWSPanoramaServiceRolePolicy
- AWSRoboMakerServicePolicy
- AWSRoboMakerServiceRolePolicy
- AWSServiceRoleForIoTSiteWise
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
{
"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/AWSGreengrassResourceAccessRolePolicyCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AWSGreengrassResourceAccessRolePolicyTerraform
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.