Troubleshooting AWS Cloud Discovery "Validate Account" FailuresIssue AWS Cloud Discovery “Validate Account” (or “Test Account”) fails when creating a discovery schedule. The Select Datacenters step cannot be reached because validation never completes. Symptoms Validate Account stays on “Validating Service Account” or returns an error. Facts Validate Account launches an AWS discovery pattern, typically “Amazon AWS Service account” or “Amazon AWS Sub account discovery.”Failure details appear in the Discovery Status record, the Horizontal Discovery Log, and the MID Server log.An ECC Queue record stuck in processing for more than 15 minutes points to a MID Server or connectivity issue.Typical AWS errors: AccessDeniedException (HTTP 400): missing IAM permission or an SCP denialExpiredTokenException: expired session token or credentialUnrecognizedClientException: invalid or disabled access keyTimeouts or SSL errors: network or proxy problem Release All Applicable Releases Cause Missing IAM permissions on the role or user used by the credential (most common).Service Control Policies (SCPs) denying the API action, sometimes only in certain regions.Expired or invalid credentials.MID Server, ECC queue, or network/proxy problems.Environment differences between dev and prod in credentials, IAM policies, SCPs, or MID Server configuration. Resolution Reproduce and collect logs. Run Validate Account, then open the matching Discovery Status record and its Horizontal Discovery Log. Note the failing step (for example, “Get service account tags”) and the exact error.Check the MID Server log. Search for the pattern name and ERROR. Record the exception, HTTP status, error code, and the AWS API named in the error.Fix by error type: AccessDeniedException: Confirm the AWS API in the error is required by the pattern. For AWS sub-account discovery, this has included organizations:ListAccounts, organizations:ListTagsForResource, and ec2:DescribeRegions. Verify against current ServiceNow docs for your release, then attach the permissions to the IAM role or user. Check the SCPs in AWS Organizations for a Deny on that action, especially region conditions such as aws:RequestedRegion. Test the call with the same credential using the AWS CLI. If the CLI also fails, the problem is in AWS.ExpiredTokenException or UnrecognizedClientException: Confirm the access key is active or the role trust policy and external ID match the ServiceNow configuration. Rotate or re-enter the credential, then validate again.Timeout or SSL error: Confirm the MID Server can reach the AWS endpoints (for example, organizations.us-east-1.amazonaws.com). Check proxy and firewall rules.Stuck ECC Queue record: Check the MID Server status and restart the MID Server service if needed. Compare environments. If validation works in one instance, compare the credential’s AWS account, IAM policies, SCPs, MID Server version, and proxy settings.Verify. Run Validate Account again. Confirm the Discovery Status completes without errors and Select Datacenters is available.