AWS DMS啟用detailed debug logging為migration task進行偵錯
1.打開DMS選取要開啟datail debug logging的Migration Task,複製Task Settings JSON所有內容
新增一個json file,將複製的內容貼到裡面
2.修改json file內容:
將要開啟detailed debug logging的Severity由"LOGGER_SEVERITY_DEFAULT"改為"LOGGER_SEVERITY_DETAILED_DEBUG"
3.下載合適的AWS CLI:
https://docs.aws.amazon.com/zh_tw/cli/latest/userguide/install-windows.html
4.設定 AWS CLI Configure:
https://docs.aws.amazon.com/zh_tw/cli/latest/userguide/cli-chap-configure.html
5.修改Task ARN及json file路徑後在AWS CLI執行(Windows):
aws dms modify-replication-task --replication-task-arn arn:aws:dms:us-east-1:123456789012:task:2PVREMWNPGYJCVU2IBPTOYTIV4 --replication-task-settings file://"c:\temp\your-task-settings.json"
6.Task status會變成Modifying,待Modify完成後Restart Task,在Task Settings已可看到要開啟datail debug logging的Severity變成"LOGGER_SEVERITY_DETAILED_DEBUG"
後學才疏學淺,如有謬誤還請各位先進不吝指教。