Keep in mind that the instance you want to troubleshoot using the automation document must be a managed instance in the AWS Systems Manager console.
Copy the instance ID of the EC2 instance you want to troubleshoot. You need the instance ID to run the automation document.
(Optional) Create and specify an AWS Identity and Access Management (IAM) role for automation. If you don't specify this role, AWS Systems Manager Automation uses the permissions of the user who runs this document. For more information about creating roles for automation, see Use IAM to configure roles for Automation.
Run the AWSSupport-TroubleshootSUSERegistration automation from the Systems Manager console
Enter AWSSupport-TroubleshootSUSERegistration in the search field, and then press Enter.
Select AWSSupport-TroubleshootSUSERegistration in the search results.
In the documents list, choose AWSSupport-TroubleshootSUSERegistration. The document owner is Amazon.
In the Description section, verify that Document version is set to Default version at runtime.
Select Execute Automation.
In the Execute automation document section, choose Simple execution.
In the Input parameters section, specify the following parameters:
For InstanceID, specify or select the ID of the instance you want to troubleshoot.
(Optional) For AutomationAssumeRole, specify the IAM role for this run. If a role isn't specified, AWS Systems Manager Automation uses the permissions of the user who runs this document.
To monitor the run progress, choose the running Automation, and then choose the Steps tab. When the run finishes, choose the Descriptions tab, and then choose View output to view the results. To view the output of individual steps, choose the Steps tab, and then choose View Outputs beside a step.
Run the AWSSupport-TroubleshootSUSERegistration automation from the AWS Command Line Interface (AWS CLI)
In the following command, replace i-xxxxxxxxxxxxxxxx with the EC2 instance that you want to troubleshoot. Replace us-east-1 with your instance's Region.