创建一个DynamoDB的四种方法:
1. 在DynamoDB页面,创建一个
2. 通过cloudformation创建一个
创建的模板 JSON代码如下:
{
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"PetTable": {
"Type": "AWS::DynamoDB::Table",
"Properties": {
"AttributeDefinitions" : [
{
"AttributeName": "pet_species",
"AttributeType": "S"
},
{
"AttributeName": "pet_