PureDevOps Community

botocore.exceptions.ClientError: An error occurred (ExpiredToken) when calling the DescribeDBInstances operation: The security token included in the request is expired

When I run python code all of a sudden I got the error

botocore.exceptions.ClientError: An error occurred (ExpiredToken) when calling the DescribeDBInstances operation: The security token included in the request is expired

After a while i realised that the aws session token is expired and upon renewing them everything started working.