【发布时间】:2018-08-11 21:14:52
【问题描述】:
我正在尝试使用 AWS Cloudformation 和 YAML 定义创建 DynamoDB 表。当我从 YAML 文件中删除类型时,我收到类型必须存在的错误。所以我想我错过了一些似乎无法找到的东西。
以下是 YAML 定义:
Resources:
devDdbDataTable:
Type: 'AWS::DynamoDB::Table'
Properties:
Tags:
- Key: access_key
Value: '123'
AttributeDefinitions:
- AttributeName: device_id
Type: 'N'
- AttributeName: device_ip
Type: S
- AttributeName: data
Type: S
- AttributeName: created_at
Type: S
- AttributeName: ttl
Type: S
KeySchema:
- AttributeName: device_id
Type: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
TimeToLiveSpecification:
AttributeName: ttl
Enabled: true
【问题讨论】:
标签: amazon-web-services amazon-dynamodb amazon-cloudformation