"How do I turn on, access, or delete CloudWatch logs for AWS DMS?"
I want to manage the Amazon CloudWatch logs for my AWS Database Migration Service (AWS DMS) task.
"I want to manage the Amazon CloudWatch logs for my AWS Database Migration Service (AWS DMS) task.ResolutionNote: If you receive errors when running AWS Command Line Interface (AWS CLI) commands, make sure that you’re using the most recent AWS CLI version.Turn on logging for a new DMS taskTo turn on logging for a new AWS DMS task, choose Enable CloudWatch logs when you create a task.Turn on logging for an existing DMS taskTo turn on logging for an existing task:Open the AWS DMS console, and then choose Database migration tasks from the navigation pane.If the task is in the Failed or Stopped status, then select the task and choose Actions. Choose Modify, and then choose Enable CloudWatch logs.If the task is in the Running status, you can change the task setting for logging using the AWS CLI.Verify that the AWS Identity and Access Management (IAM) role dms-cloudwatch-logs-role exists on the AWS account running the task. If the role doesn't exist in the AWS account running the task, then follow the steps in Why can't I see CloudWatch Logs for an AWS DMS task?After you turn on logging, you can manage the AWS DMS task logs.View the logs of a DMS taskTo view the logs of a task that has run, follow these steps:Open the AWS DMS console, and then choose Database migration tasks from the navigation pane.Choose the name of your task.From the Overview details section, choose View logs.Delete the logs of a DMS taskTo delete logs, follow these steps:Open the AWS DMS console, and then choose Replication instances from the navigation pane.Choose the name of the replication instance that hosts your task.From the Log management section, select the logs you want to delete.Choose Delete.Confirm that you want to delete the logs permanently by choosing Delete.You can also delete AWS DMS logs from the CloudWatch console by following these steps:Open the CloudWatch console, and then choose Logs from the navigation pane.Use the Filter field for search for your log files. The log group has the prefix dms.Choose the log group, and then choose Actions.Choose Delete log group.Confirm that you want to delete the logs permanently by choosing Delete.Related informationMigrate an on-premises Oracle database to Amazon RDS for PostgreSQL using an Oracle bystander and AWS DMSFollow"