Service Graph Connector for AWS connection fails with credential is not valid errorIssue When a Service Graph Connector (SGC) for AWS connection uses role-based AssumeRole authentication, the default connection test fails with the error Http Request authentication failed:credential is not valid. Discovery does not run. The AWS access key and secret key are valid outside the ServiceNow platform. Symptoms The default AWS connection test returns:Error encountered executing HTTP request : Http Request authentication failed:credential is not valid.The MID Server log shows:ERROR [AuthGenerator:57] credential is not valid.ERROR [MidPFLogger:47] IPaaSActionProbe | Http Request authentication failed:credential is not valid.The AWS access key and secret key used in the credential record test successfully when validated directly in AWS. The connection still fails from the ServiceNow instance.Discovery schedules that use the Service Graph Connector for AWS connection do not complete successfully. Facts Service Graph Connector (SGC) for AWS configured with role-based AssumeRole authentication.The authentication method is AWS AssumeRole. An Auth Algorithm record defines it, and the AWS Credentials record references that record.The error originates from the IPaaSActionProbe worker on the MID Server.The issue affects the default HTTP connection used by the Service Graph Connector for AWS. Release All currently supported releases. Cause The MID Authentication Script field on the Auth Algorithm record is empty. The AWS Credentials record references this Auth Algorithm record. When the field is empty, the Service Graph Connector for AWS connection cannot generate a valid signed request. The connection then returns a credential is not valid authentication error, even when the AWS access key and secret key are correct. Resolution Go to the Auth Algorithm list: https://<instance-name>/auth_algorithm_list.doOpen the Auth Algorithm record that the AWS Credentials record references for the Service Graph Connector for AWS connection. Check the MID Authentication Script field on the record. If this field is empty, the connection cannot generate a valid signed request for AWS.In the MID Authentication Script field, select the base system script for AWS Signature authentication, RequestAuthAWSV4MIDSigner. If the script does not exist, contact ServiceNow Support to request the file. Select Update to save the record.Open the related AWS Credentials record.In the related links, select Test Credential, and confirm the test returns a successful connection. Related Links Service Graph Connector for AWS setup instructions Control AWS access and permissions using policies