1 Answer
- Newest
- Most votes
- Most comments
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
Relevant content
- Accepted Answerasked 3 months ago
- Accepted Answerasked 9 months ago
- Accepted Answerasked 7 months ago
- asked a month ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago