iT邦幫忙

2021 iThome 鐵人賽

DAY 10
0
Software Development

SQL / NoSQL的實作與比較系列 第 10

DynamoDB匯出至S3

NoSQL資料除了前次的備份還原之外, 也可以匯出至S3當作額外備份, 或是給其他AWS服務使用.

  1. 在面板點選Export to S3
    https://ithelp.ithome.com.tw/upload/images/20210924/20091942YqPPFFBypJ.png

  2. 匯出之前必須要先建立S3 Bucket當作儲存目的地.
    https://ithelp.ithome.com.tw/upload/images/20210924/20091942y2N7C54xcR.png

  3. 輸入一個唯一值的名稱, 然後使用預設值很快建立一個Bucket.
    https://ithelp.ithome.com.tw/upload/images/20210924/20091942YN5pibXIRr.png

  4. 這次使用先前建立的EventLog Table當作資料來源, 匯出至S3的表必須開啟PITR選項.
    https://ithelp.ithome.com.tw/upload/images/20210924/20091942vUBdmr7Tvi.png

  5. 將資料來源與目的地都設定好, 其餘都使用預設值, [Export]即可匯出.
    https://ithelp.ithome.com.tw/upload/images/20210924/20091942JQRaTTSlha.png

  6. 匯出完成後可看到Export ARN Completed.
    https://ithelp.ithome.com.tw/upload/images/20210924/20091942cHA0uC9AVu.png

  7. 點選Bucket後可看到裡面有一個AWSDynamoDB的子資料夾.
    https://ithelp.ithome.com.tw/upload/images/20210924/200919423UPfiJ1aGD.png

  8. 再繼續往裡面的子資料夾點選進入, 可看到一個data的資料夾, 裡面存放以gz格式壓縮匯出的資料. 點選該筆資料, 再從[Action]選取 [Query with S3 Select]
    https://ithelp.ithome.com.tw/upload/images/20210924/20091942s9RgdUlZz8.png

  9. 頁面往下瀏覽, 再按 [Run SQL query]
    https://ithelp.ithome.com.tw/upload/images/20210924/20091942tPjkjy6Ywa.png

  10. 即可看到在EventLog的資料以JSON的格式呈現.
    https://ithelp.ithome.com.tw/upload/images/20210924/20091942uYYCZEHLm0.png


上一篇
NoSQL備份與還原
下一篇
Secondary Index
系列文
SQL / NoSQL的實作與比較30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言