0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

aws cli で DynamoDB を更新

Last updated at Posted at 2022-07-18

こちらで作成したテーブルを更新します。
aws cli で DynamoDB を使う
次のページを参考にしました。
更新式

go_update.sh
aws dynamodb update-item --table-name uchida-test-cities \
       --key '{"key": {"S": "t0923"}}' \
	--update-expression "SET population = :pp, date_mod = :dd" \
    --expression-attribute-values file://values.json \
    --return-values ALL_NEW
values.json
{
    ":pp": { "N": "19991" },
    ":dd": { "S": "2022-7-17" }
}

次のバージョンで確認しました。

$ aws --version
aws-cli/2.7.16 Python/3.9.11 Linux/5.15.0-1015-aws exe/x86_64.ubuntu.22 prompt/off
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?