AWS DMS

To Kinesis data format

The data to stream is json string. Here are some samples for different operations:

Control Data

sometimes there are some control data sent to stream

{
  "metadata": {
    "timestamp": "2021-02-18T23:09:09.509179Z",
    "record-type": "control",
    "operation": "create-table",
    "partition-key-type": "task-id",
    "schema-name": "",
    "table-name": "awsdms_apply_exceptions"
  }
}

Full Load

When DMS run full load

{
    "data": {
        "id": 315209,
        "created_by_user_id": 1,
        "ownership_id": 1,
        "name": "dsdsd dsdsdds",
        "first_name": "dsdsd",
        "last_name": "dsdsdds",
        "lead_type": "Hello Leads",
        "lead_status": "Contacted",
        "phone": "12345",
        "email": "fmfjdd@qq.com",
        "country": "CB",
        "created_at": "2020-01-09T04:13:38Z",
        "updated_at": "2020-01-15T22:45:17Z",
        "deleted_at": "2020-01-15T22:45:17Z",
        "last_viewed_datetime": "2020-01-15T22:45:01Z",
        "description": "dshl asdjsakl haa hausaa s"
    },
    "metadata": {
        "timestamp": "2020-12-15T05:47:42.724458Z",
        "record-type": "data",
        "operation": "load",
        "partition-key-type": "primary-key",
        "schema-name": "lab_logix_crm_replica",
        "table-name": "acy_leads"
    }
}

Insert

Delete

Update

"operation": "update"

"data": data AFTER update

Last updated

Was this helpful?