aws-dynamodb
Verified for current stable LTS
Aws Dynamodb Command: Create Table
An engineer would use this AWS DynamoDB command when setting up a new database table to store structured data within a cloud application, ensuring it has defined attributes, a primary hash key, and specific read/write throughput configurations. Exact CLI syntax to create table using Aws Dynamodb.
When to use this: An engineer would use this AWS DynamoDB command when setting up a new database table to store structured data within a cloud application, ensuring it has defined attributes, a primary hash key, and specific read/write throughput configurations.
Command Syntax
aws dynamodb create-table --table-name <table_name> --attribute-definitions <AttributeName=S,AttributeType=S> --key-schema <AttributeName=S,KeyType=HASH> --provisioned-throughput <ReadCapacityUnits=5,WriteCapacityUnits=5> aws dynamodb create-table --table-name <table_name> --attribute-definitions <AttributeName=S,AttributeType=S> --key-schema <AttributeName=S,KeyType=HASH> --provisioned-throughput <ReadCapacityUnits=5,WriteCapacityUnits=5> Command Breakdown
--table-name- Command Option
- Tool-specific option used by this command invocation.
--attribute-definitions- Command Option
- Tool-specific option used by this command invocation.
--key-schema- Command Option
- Tool-specific option used by this command invocation.
--provisioned-throughput- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to create table using Aws Dynamodb.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Aws Dynamodb Command: List Tables
aws dynamodb list-tables Aws Dynamodb Command: Describe Table aws dynamodb describe-table --table-name <table_name> Aws Dynamodb Command: Get Item aws dynamodb get-item --table-name <table_name> --key '{{{"ID": {"N": "1"}}}}' Aws Dynamodb Command: Scan aws dynamodb scan --table-name <table_name> Aws Dynamodb Command: Put Item aws dynamodb put-item --table-name <table_name> --item '{{{"AttributeName": {"S": "value"}}}}'