How to create a DynamoDB table with the AWS CDK
1: TypeScript
import * as dynamodb from '@aws-cdk/aws-dynamodb';
const table = new dynamodb.Table(this, 'my-table', {
partitionKey: { name: 'id', type: dynamodb.AttributeType.STRING }
});
2: Python
import aws_cdk.aws_dynamodb as dynamodb
table ...
dennistraub.hashnode.dev1 min read