Skip to main content

managed_instance_roles

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

Overview​

Namemanaged_instance_roles
TypeResource
Idaws.ssm.managed_instance_roles

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
update_managed_instance_roleupdateregion, InstanceId, IamRoleChanges the Identity and Access Management (IAM) role that is assigned to the on-premises server, edge device, or virtual machines (VM). IAM roles are first assigned to these hybrid nodes during the activation process. For more information, see CreateActivation.

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​

Changes the Identity and Access Management (IAM) role that is assigned to the on-premises server, edge device, or virtual machines (VM). IAM roles are first assigned to these hybrid nodes during the activation process. For more information, see CreateActivation.

UPDATE aws.ssm.managed_instance_roles
SET
InstanceId = '{{ InstanceId }}',
IamRole = '{{ IamRole }}'
WHERE
region = '{{ region }}' --required
AND InstanceId = '{{ InstanceId }}' --required
AND IamRole = '{{ IamRole }}' --required;