To Nha Notes | Jan. 10, 2023, 8:38 p.m.
If your replication task doesn't create CloudWatch logs, make sure that your account has the dms-cloudwatch-logs-role role. If this role is not present, do the following to create it:
Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.
Choose the Roles tab. Choose Create role.
In the Select type of trusted entity section, choose AWS service.
In the Choose a use case section, choose DMS.
Choose Next: Permissions.
Enter AmazonDMSCloudWatchLogsRole in the search field, and check the box next to AmazonDMSCloudWatchLogsRole. This grants AWS DMS permissions to access CloudWatch.
Choose Next: Tags.
Choose Next: Review.
Enter dms-cloudwatch-logs-role for Role name. This name is case sensitive.
Choose Create role.
To fix this issue, we need to add extra grants to mysql dms account as below.
GRANT REPLICATION CLIENT, REPLICATION SLAVE ON *.* TO 'dms_user'@'%';
PRIVILEGES;
All MySQL grants required for DMS source mysql account:
GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'dms_user'@'%';
GRANT SELECT, SHOW VIEW ON `dms_db`.* TO 'dms_user'@'%';
https://repost.aws/knowledge-center/manage-cloudwatch-logs-dms
https://repost.aws/knowledge-center/dms-cloudwatch-logs-not-appearing