'"__type":"UnrecognizedClientException","message":"The security token included in the request is invalid."

I am using aws/aws-sdk-php library with version (it was downloaded): 3.62.2 , it was working fine

Now I need to use this aws/aws-sdk-php library from the composer with version 3.131.0, this is working fine in local env but issue while test in testing env

while using it from composer getting error below,

ARN validation failed: Error executing "GenerateDataKey" on "https://kms.us-east-1.amazonaws.com"; AWS HTTP error: Client error: `POST https://kms.us-east-1.amazonaws.com` resulted in a `400 Bad Request` response:
{"__type":"UnrecognizedClientException","message":"The security token included in the request is invalid."}
 UnrecognizedClientException (client): The security token included in the request is invalid. - {"__type":"UnrecognizedClientException","message":"The security token included in the request is invalid."}

everything on the page shows as an encrypted format.

can anyone guide me to solve this issue where should I look for ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source