Could you please tell me anything that I've missed at this code.
resources:
Resources:
ScholarshipsTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: purrfectScholarshipsTable
AttributeDefinitions:
- AttributeName: postId
AttributeType: S
KeySchema:
- AttributeName: postId
KeyType: HASH
GlobalSecondaryIndexes:
- IndexName: scholarshipCategoryIndex
KeySchema:
- AttributeName: category
KeyType: HASH
- AttributeName: deadline
KeyType: RANGE
Projection:
ProjectionType: "ALL"
BillingMode: PAY_PER_REQUEST
I use the serverless framework and I got the error. Any mistakes that I make?