यहाँ (डायनमोडीबी भाग) मेरा ट्रोपोस्फ़ेयर-जनरेट किया गया JSON:
"sandbox": {
"Properties": {
"AttributeDefinitions": [
{
"AttributeName": "audit_id",
"AttributeType": "S"
},
{
"AttributeName": "status",
"AttributeType": "S"
},
{
"AttributeName": "filename",
"AttributeType": "S"
},
{
"AttributeName": "file_detected_dt",
"AttributeType": "S"
},
{
"AttributeName": "time_taken",
"AttributeType": "N"
},
{
"AttributeName": "number_rows_processed_file",
"AttributeType": "N"
},
{
"AttributeName": "number_rows_created_db",
"AttributeType": "N"
},
{
"AttributeName": "info_messages",
"AttributeType": "S"
}
],
"KeySchema": [
{
"AttributeName": "audit_id",
"KeyType": "HASH"
}
],
"ProvisionedThroughput": {
"ReadCapacityUnits": {
"Ref": "ReadCapacityUnits"
},
"WriteCapacityUnits": {
"Ref": "WriteCapacityUnits"
}
}
},
"Type": "AWS::DynamoDB::Table"
}
CloudFormation VPC को स्पिन करने की कोशिश में मुझे यह त्रुटि देता है: Property AttributeDefinitions is inconsistent with the KeySchema of the table and the secondary indexes :।
लेकिन ... यह है? मैं audit_idएक अकेला कुंजी के रूप में निर्दिष्ट कर रहा हूं , और यह निश्चित रूप से AttributeDefinitions सूची में मौजूद है। मैं सीएफ (और डायनमो, उस मामले के लिए) के लिए बहुत नया हूं, इसलिए मुझे अच्छी तरह से कुछ स्पष्ट याद आ रहा है, लेकिन यह मेरे लिए फिलहाल स्पष्ट नहीं है।
मैंने चारों ओर गुगली की है और केवल इस त्रुटि का एक उल्लेख पाया है, और यह सीएफ के बजाय डेवलपर और सीएफ के बीच एक परत के साथ करना अधिक था।
क्या कोई बता सकता है कि मेरे खाके में क्या खराबी है?