AWS SSM Cloud Agents Discovery Pattern Fails to Parse REST API Output When DescribeInstanceInformation Returns Empty Response<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Issue:During Discovery using the Amazon AWS - SSM Cloud Agents (LP) pattern, the first Orchestrator page successfully retrieves SSM agent records. However, when processing the second Orchestrator page, the AWS DescribeInstanceInformation API returns an empty instance list (InstanceInformationList: [] with NextToken: null), causing the pattern to fail. The Discovery log shows: "DescribeInstanceInformationResponse": { "DescribeInstanceInformationResult": { "InstanceInformationList": [], "NextToken": null }, "ResponseMetadata": { "RequestId": "......." }} This causes a "Failed to parse SSM Agents REST API output" message in the Discovery log. Steps to Reproduce:1. Run the Amazon AWS - SSM Cloud Agents (LP) Discovery pattern targeting a cloud environment with AWS SSM.2. Observe the Discovery log during the "Fetch SSM Agents" step.3. Check for the API response: empty InstanceInformationList and NextToken=null.4. Verify that no SSM agent records are created for that page.Resolution:- The Discovery pattern retrieves SSM agents from AWS using paginated API calls (MaxResults=50).- Orchestrator Page 1 successfully returns all available SSM agent records.- Orchestrator Page 2 may return an empty InstanceInformationList with NextToken=null. The pattern logs "Failed to parse SSM Agents REST API output" because there are no records to process on this page.- This behavior is expected and indicates that AWS has no additional SSM agents beyond what was returned on Page 1.- To confirm, run the same DescribeInstanceInformation API manually from the MID Server. The output should match what the Discovery logs show.