Multiple tables in Dynamo db based on full stack

I am new to serverless framework. I created a fullstack application using apps.serverless.com. It has generated serverless.yaml for database component and it looks like following. I am not sure how would I add additional tables or extend this yaml file? Would I create another input tag?

component: aws-dynamodb
name: database

inputs:
name: user-${stage}
region: ca-central-1
deletionPolicy: delete
attributeDefinitions:
- AttributeName: hk
AttributeType: S
- AttributeName: sk
AttributeType: S
- AttributeName: sk2
AttributeType: S
keySchema:
- AttributeName: hk
KeyType: HASH
- AttributeName: sk
KeyType: RANGE
globalSecondaryIndexes:
- IndexName: gsi1
KeySchema:
- AttributeName: sk2
KeyType: HASH
- AttributeName: sk
KeyType: RANGE
Projection:
ProjectionType: ALL

1 Like