Creating an AWS DynamoDB Data Service with Pulumi
This reference shows how to use Pulumi to define an AWS DynamoDB resource using pure code which can then be deployed to AWS and managed as infrastructure as code.
What is AWS DynamoDB?

AWS DynamoDB is a fast and flexible nonrelational database service for all applications that need consistent, single-digit millisecond latency at any scale. Find out more at AWS here.
Create an AWS DynamoDB resource using @pulumi/aws
The @pulumi/aws
library enables fine-grained control over the AWS DynamoDB resource meaning it can be coded, deployed, and managed entirely in code.
const aws = require("@pulumi/aws");
const db = new aws.dynamodb.Table("mytable", {
attributes: [
{ name: "Id", type: "S" },
],
hashKey: "Id",
readCapacity: 1,
writeCapacity: 1,
});
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.