- Serverless Programming Cookbook
- Heartin Kanikathottu
- 117字
- 2025-04-04 15:02:18
Other ways to create tables
In this recipe, we created our table by specifying the properties, such as attribute-definitions, key-schema, provisioned-throughput, and so on. Instead, you can specify a JSON snippet or JSON file using the cli-input-json option. The generate-cli-skeleton option returns a sample template as required by the cli-input-json option.
In this recipe, we created a table using the AWS CLI and CloudFormation. You can also create DynamoDB tables from Java code using the AWS SDK, as we will see in a later recipe. However, in most real-world cases, CloudFormation templates are used to create and provision tables, and the AWS SDK is used to work with data items.