【发布时间】:2017-04-01 22:42:45
【问题描述】:
我有一个 users 表和一个 requests 表。一个用户的许多请求。我想在用户表中有一个请求列表。但我不确定如何编写云形成调用来构建它。目前我只有一组属性:
resources:
Resources:
DynamoDbTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: Employee
AttributeDefinitions:
- AttributeName: employeeid
AttributeType: S
- AttributeName: name
AttributeType: S
- AttributeName: requests
AttributeType: S
KeySchema:
- AttributeName: employeeid
KeyType: HASH
我希望 requests 是用户的请求 id 列表,而不是字符串值,所以没有 S 类型,所以我可以循环浏览它们并调用我想要的那些。让我知道我的架构是否正常。提前致谢。
【问题讨论】:
标签: amazon-dynamodb serverless-framework