简体   繁体   中英

How to update existing table name in DynamoDB using AWS Cli?

It may be a dumb question as I am beginner. I tried to update the existing table name (eg MusicCollection) in DynamoDB to "Music" using aws cli. But failed.

Here is the cli command I tried to use

aws dynamodb update-table --table-name MusicCollection | Music

Can someone tell me how to update the exiting table name by using aws cli or aws management console?

This is the command to update your table from on-demand to provision:

aws dynamodb update-table --table-name YourTableName --billing-mode PROVISIONED --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1

and this is the command to update your provisioned table to on-demand:

aws dynamodb update-table --table-name YourTableName --billing-mode PAY_PER_REQUEST

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM