1. Docs
  2. Clouds
  3. AWS
  4. AWS Guides
  5. Creating an AWS DynamoDB Data Service with Pulumi

Creating an AWS DynamoDB Data Service with Pulumi

    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,
    });
    
      Pulumi AI - What cloud infrastructure would you like to build? Generate Program