1
Ich versuche, eine Tabelle mit Serverless Framework zu erstellen und obwohl ich Projektion für die GSI angegeben haben, beschwert sich Serverless, dass Property-Projektion nicht leer sein kann. Bekomme ich die Syntax falsch? Wenn ich den GSI-Abschnitt entferne, funktioniert es ziemlich gut.Eigenschaft Projektion kann nicht leer sein
Table1:
Type: "AWS::DynamoDB::Table"
Properties:
AttributeDefinitions:
- AttributeName: "uid"
AttributeType: "S"
- AttributeName: "bid"
AttributeType: "S"
KeySchema:
- AttributeName: "uid"
KeyType: "HASH"
- AttributeName: "bid"
KeyType: "RANGE"
GlobalSecondaryIndexes:
- IndexName: "bid-uid-index"
- KeySchema:
- AttributeName: "bid"
KeyType: "HASH"
- AttributeName: "uid"
KeyType: "RANGE"
- Projection:
- ProjectionType: "ALL"
- ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
TableName: "Table1"