Suddenly getting an error "Credential is not correct" Amazon SSM

0

Hi,

We are suddenly getting an error "Credential is not correct" in Amazon SSM Logs. Our Cloudwatch custom metrics have stopped working. We have not changed anything and also made sure that SSM Role is attached to that instance. We also tried to put credential file in the server on .aws folder on the windows server. PSB Actual error getting in log file "amazon-ssm-cloudwatch.log".

Credential is not correct. Setting CloudWatchService IsImpaired to be true, Failed to upload metric to CloudWatch. Amazon.CloudWatch.AmazonCloudWatchException: Amazon CloudWatch Metrics no longer supports TLS 1.0 and TLS 1.1 connections. You must update your client to use TLS version 1.2 or above. To learn more and to update your client, see https://go.aws/3AUlVSb. For further assistance, contact AWS support ---> Amazon.Runtime.Internal.HttpErrorResponseException: The remote server returned an error: (403) Forbidden. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden. at System.Net.HttpWebRequest.GetResponse() at Amazon.Runtime.Internal.HttpRequest.GetResponse() --- End of inner exception stack trace --- at Amazon.Runtime.Internal.HttpRequest.GetResponse() at Amazon.Runtime.Internal.HttpHandler1.InvokeSync(IExecutionContext executionContext) at Amazon.Runtime.Internal.Unmarshaller.InvokeSync(IExecutionContext executionContext) at Amazon.Runtime.Internal.ErrorHandler.InvokeSync(IExecutionContext executionContext) --- End of inner exception stack trace --- at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleException(IExecutionContext executionContext, HttpErrorResponseException exception) at Amazon.Runtime.Internal.ErrorHandler.ProcessException(IExecutionContext executionContext, Exception exception) at Amazon.Runtime.Internal.ErrorHandler.InvokeSync(IExecutionContext executionContext) at Amazon.Runtime.Internal.CallbackHandler.InvokeSync(IExecutionContext executionContext) at Amazon.Runtime.Internal.RetryHandler.InvokeSync(IExecutionContext executionContext) at Amazon.Runtime.Internal.CallbackHandler.InvokeSync(IExecutionContext executionContext) at Amazon.Runtime.Internal.CallbackHandler.InvokeSync(IExecutionContext executionContext) at Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeSync(IExecutionContext executionContext) at Amazon.Runtime.Internal.MetricsHandler.InvokeSync(IExecutionContext executionContext) at Amazon.Runtime.Internal.RuntimePipeline.InvokeSync(IExecutionContext executionContext) at Amazon.Runtime.AmazonServiceClient.Invoke[TRequest,TResponse](TRequest request, IMarshaller2 marshaller, ResponseUnmarshaller unmarshaller) at Amazon.CloudWatch.AmazonCloudWatchClient.PutMetricData(PutMetricDataRequest request) at AWS.EC2.Windows.CloudWatch.CloudWatch.CloudWatchService.TryPutMetricData(List`1 metrics, String nameSpace)

demandé il y a 6 mois214 vues
2 réponses
1
Réponse acceptée

This error indicates that your Amazon SSM agent is still using TLS 1.0 or 1.1 to connect to CloudWatch, which are now deprecated.

profile pictureAWS
répondu il y a 6 mois
profile pictureAWS
EXPERT
vérifié il y a 6 mois
0

Thanks @Dave Connelly AWS. I updated SSM Agent and its working now.

répondu il y a 6 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions