UpdateItem.sh 501 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. TABLE_NAME='elaborate_employee_table'
  3. # aws \
  4. # dynamodb \
  5. # update-item \
  6. # --table-name ${TABLE_NAME} \
  7. # --key file://update_item_key.json \
  8. # --expression-attribute-values file://update_item_values.json \
  9. # --expression-attribute-names file://update_item_expression_names.json \
  10. # --update-expression "SET #ads = :a, #kds = :k" | jq .
  11. aws \
  12. dynamodb \
  13. get-item \
  14. --table-name ${TABLE_NAME} \
  15. --key file://update_item_key.json \
  16. --projection-expression "addresses[0].street" | jq .