Error Blog
This blog is about the error An error occurred (InvalidSignatureException) when calling the DescribeTable operation: Signature not yet current .
Problem Statement
unable to fetch data from AWS DynamoDB table using AWS CLI .
Error Details
error Log
ERROR DETAILS
An error occurred (InvalidSignatureException) when calling the DescribeTable operation: Signature not yet current: 20200502T150446Z is still later than 20200502T143607Z (20200502T142107Z + 15 min.)
Error Code
This error is due to a mismatch between the PC time and AWS time .
time
The current time is: 22:42:13.41
The current time is: 22:42:13.41
Solution
change the system time so that it matches with the AWS time .
Code Changes
add the following import in your component.ts file .
time
The current time is: 22:42:13.41
Enter the new time: 22:42:10
The current time is: 22:42:13.41
Enter the new time: 22:42:10
OUTPUT
aws dynamodb describe-table --table-name AWS_LOG
{
"Table": {
"AttributeDefinitions": [
{
"AttributeName": "LOG_ID",
"AttributeType": "S"
}
],
"TableName": "AWS_LOG",
"KeySchema": [
{
"AttributeName": "LOG_ID",
"KeyType": "HASH"
}
],
"TableStatus": "ACTIVE",
"CreationDateTime": "2019-07-24T21:51:44.329000+05:30",
"ProvisionedThroughput": {
"NumberOfDecreasesToday": 0,
"ReadCapacityUnits": 5,
"WriteCapacityUnits": 5
},
"TableSizeBytes": 75,
"ItemCount": 2,
"TableArn": "arn:aws:dynamodb:us-east-2:320524107631:table/AWS_LOG",
"TableId": "8731e2dd-469a-4282-b8ea-934817631743",
"StreamSpecification": {
"StreamEnabled": true,
"StreamViewType": "NEW_AND_OLD_IMAGES"
},
"LatestStreamLabel": "2019-07-28T12:20:59.302",
"LatestStreamArn": "arn:aws:dynamodb:us-east-2:320524107631:table/AWS_LOG/stream/2019-07-28T12:20:59.302" }
}
{
"Table": {
"AttributeDefinitions": [
{
"AttributeName": "LOG_ID",
"AttributeType": "S"
}
],
"TableName": "AWS_LOG",
"KeySchema": [
{
"AttributeName": "LOG_ID",
"KeyType": "HASH"
}
],
"TableStatus": "ACTIVE",
"CreationDateTime": "2019-07-24T21:51:44.329000+05:30",
"ProvisionedThroughput": {
"NumberOfDecreasesToday": 0,
"ReadCapacityUnits": 5,
"WriteCapacityUnits": 5
},
"TableSizeBytes": 75,
"ItemCount": 2,
"TableArn": "arn:aws:dynamodb:us-east-2:320524107631:table/AWS_LOG",
"TableId": "8731e2dd-469a-4282-b8ea-934817631743",
"StreamSpecification": {
"StreamEnabled": true,
"StreamViewType": "NEW_AND_OLD_IMAGES"
},
"LatestStreamLabel": "2019-07-28T12:20:59.302",
"LatestStreamArn": "arn:aws:dynamodb:us-east-2:320524107631:table/AWS_LOG/stream/2019-07-28T12:20:59.302" }
}
Thanks for reading . Let me know your thoughts in the comments below .