在Aws lambda函数中,我正在存储图像,而我的图像是我的主键。但是没有案例,我可以将相同的图像存储在不同的功能中。 John也可以是function1和function2的一部分。因此,当我在第二和第二个存储中时,都将其删除。我的表结构是通过
获得的aws dynamodb describe-table --table-name athlete_collection
结果:
"Table": {
"TableName": "athlete_collection",
"TableSizeBytes": 77,
"CreationDateTime": 1528273139.189,
"ProvisionedThroughput": {
"ReadCapacityUnits": 1,
"NumberOfDecreasesToday": 0,
"WriteCapacityUnits": 1
},
"StreamSpecification": {
"StreamViewType": "NEW_AND_OLD_IMAGES",
"StreamEnabled": true
},
"TableArn": "arn:aws:dynamodb:us-east-1:969213561829:table/athlete_collection",
"ItemCount": 1,
"TableId": "8cc40165-5ac2-4aa2-9db4-f06ffad8639c",
"LatestStreamLabel": "2018-06-13T07:22:00.651",
"AttributeDefinitions": [
{
"AttributeName": "RekognitionId",
"AttributeType": "S"
}
],
"KeySchema": [
{
"AttributeName": "RekognitionId",
"KeyType": "HASH"
}
],
"LatestStreamArn": "arn:aws:dynamodb:us-east-1:969213561829:table/athlete_collection/stream/2018-06-13T07:22:00.651",
"TableStatus": "ACTIVE"
}
}
我是这样查询的
aws dynamodb create-table --table-name athlete_collection \
--attribute-definitions AttributeName=RekognitionId,AttributeType=S \
--key-schema AttributeName=RekognitionId,KeyType=HASH \
--provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 \
--region eu-west-1