Supported Resource-Level Permissions Report issue Edit reference. Open AWS documentation Report issue Edit reference. This will only return data if data was already there. Returns an array of table names associated with the current account and endpoint. You can get values of all items before updating (changed or not) adding following option: -return-values ALL_OLD. You can get the consumed write capacity units for the command adding following option: -return-consumed-capacity TOTAL The following is an example of using the AWS CLI to list the tables in DynamoDB on your. You can ask to wait until table exist, by using wait as: aws dynamodb wait table-exists -table course_dataĪws dynamodb update-table -table-name course_data -profile dynamodbdev -provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1Īws dynamodb put-item -table-name course_data -item -profile dynamodbdev To access DynamoDB running locally, use the -endpoint-url parameter. The output from ListTables is paginated, with each page returning a maximum of. You can generate the skeleton json as: aws dynamodb create-table -generate-cli-skeleton -profile dynamodbdevĬreate-table returns immediately and table is created asynchronously. Returns an array of table names associated with the current account and endpoint. You can also import the configuration from a json as: aws dynamodb create-table -cli-input-json -profile dynamodbdev You don’t have to mention region if you have configured it as default using aws configure.Īws dynamodb describe-table -table-name course_data -profile dynamodbdevĪws dynamodb delete-table -table-name course_data -profile dynamodbdevĪws dynamodb create-table -table-name course_data -profile dynamodbdev -attribute-definitions AttributeName=course_id,AttributeType=S AttributeName=course_date,AttributeType=S -key-schema AttributeName=course_id,KeyType=HASH AttributeName=course_date,KeyType=RANGE -provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 Note: This will list all tables in the region in json format. Aws dynamodb list-tables -profile dynamodbdev -region ap-south-1