Skip to main content

service_role_to_accounts

Creates, updates, deletes, gets or lists a service_role_to_accounts resource.

Overview

Nameservice_role_to_accounts
TypeResource
Idaws.greengrass.service_role_to_accounts

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
associate_service_role_to_accountupdateregion, RoleArnAssociates a role with your account. AWS IoT Greengrass will use the role to access your Lambda functions and AWS IoT resources. This is necessary for deployments to succeed. The role must have at least minimum permissions in the policy ''AWSGreengrassResourceAccessRolePolicy''.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

UPDATE examples

Associates a role with your account. AWS IoT Greengrass will use the role to access your Lambda functions and AWS IoT resources. This is necessary for deployments to succeed. The role must have at least minimum permissions in the policy ''AWSGreengrassResourceAccessRolePolicy''.

UPDATE aws.greengrass.service_role_to_accounts
SET
RoleArn = '{{ RoleArn }}'
WHERE
region = '{{ region }}' --required
AND RoleArn = '{{ RoleArn }}' --required
RETURNING
associated_at;