managed_instance_roles
Creates, updates, deletes, gets or lists a managed_instance_roles resource.
Overview
| Name | managed_instance_roles |
| Type | Resource |
| Id | aws.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
update_managed_instance_role | update | region, InstanceId, IamRole | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
UPDATE examples
- update_managed_instance_role
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;