How do I use transformations in AWS DMS?

Lesedauer: 3 Minute
0

I want to use transformations in AWS Database Migration Service (AWS DMS) to modify a schema, table, or column.

Short description

To define your transformation rules, use the AWS Command Line Interface (AWS CLI) or API, or use the AWS DMS console.

Resolution

Note: If you receive errors when you run AWS CLI commands, then see Troubleshoot AWS CLI errors. Also, make sure that you're using the most recent AWS CLI version.

Add transformations to a new task

To add transformations to a new task, complete the following steps:

  1. Open the AWS DMS console.
  2. In the navigation pane, choose Database migration tasks.
  3. Choose Create task.
  4. Enter the details for Task configuration and Task settings.
  5. Select Turn on CloudWatch logs.
  6. From the Table mappings section, choose Guided UI. Or, choose JSON editor to enter the mappings in JSON format.
  7. Expand the Selection rules section, and then choose Add a new selection rule.
  8. Enter a Schema and Table name.
  9. Choose Action, and then select either Include or Exclude.
    Note: To add multiple rules, choose Add new selection rule. Then, enter the details for your selection rule. You must have at least one selection rule to use transformations.
  10. Expand the Transformation rules section, and then choose Add a new transformation rule.
  11. Choose a target.
    Note: If you choose Column, then you must enter the Schema, Table, and Column names. If you choose Table, then you must enter the Schema and Table names. If you choose Schema, then you must enter the Schema name.
  12. Choose Action, and then select an option for the transformation.
  13. To save the transformation rule, choose Add a new transformation rule.
  14. Choose Create task.

Add transformations to an existing task

To add transformations to an existing task, complete the following steps:

  1. Open the AWS DMS console.
  2. In the navigation pane, choose Database migration tasks.
  3. Choose the task that you want to add the transformation to.
  4. Choose Actions, and then choose Modify.
  5. Under Table mappings, expand Selection rules, and then choose Add new selection rule.
  6. Expand Transformation rules, choose Add a new transformation rule, and enter the rule details.
  7. Choose Save.

For more information, see Using table mapping to specify task settings.

Related information

Transformation rules and actions

Specifying table selection and transformations rules from the console

AWS OFFICIAL
AWS OFFICIALAktualisiert vor 6 Monaten