1 個回答
- 最新
- 最多得票
- 最多評論
1
Hi,
Here is such an example:
AWSTemplateFormatVersion: "2010-09-09"
Resources:
usersTable:
Type: "AWS::DynamoDB::Table"
Properties:
AttributeDefinitions:
-
AttributeName: "userId"
AttributeType: "S"
-
AttributeName: "noteId"
AttributeType: "S"
KeySchema:
-
AttributeName: "userId"
KeyType: "HASH"
-
AttributeName: "noteId"
KeyType: "RANGE"
ProvisionedThroughput:
ReadCapacityUnits: "5"
WriteCapacityUnits: "5"
TableName: "notes_serverless"
You can have a look at https://dynobase.dev/dynamodb-cloudformation/ to get more details about CFN & DDB.
Best,
Didier
相關內容
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前