title: AWS DMS - InvalidParameterValueException) when calling the CreateReplicationTask operation: Replication Task Settings document error: Invalid json
body: <p>I am trying to create a DMS replication task using the AWS DMS cli. I am trying to pass the task settings using a json file like this:</p>
  
  <pre><code>aws dms create-replication-task --replication-task-identifier dms-cli-test-replication-task-1 --source-endpoint-arn arn --target-endpoint-arn arn --replication-instance-arn arn --migration-type full-load-and-cdc --table-mappings ./table_mappings.json --replication-task-settings ./task_settings.json --region us-east-1
  </code></pre>
  
  <p>when I run this command, the below error is being thrown:</p>
  
  <pre><code>An error occurred (InvalidParameterValueException) when calling the CreateReplicationTask operation: Replication Task Settings document error: Invalid json
  </code></pre>
  
  <p>Below is the content of my task_settings.json file:</p>
  
  <pre><code>{
  "TargetMetadata": {
  "TargetSchema": "",
  "SupportLobs": true,
  "FullLobMode": true,
  "LobChunkSize": 64,
  "LimitedSizeLobMode": false,
  "LobMaxSize": 0,
  "InlineLobMaxSize": 0,
  "LoadMaxFileSize": 0,
  "ParallelLoadThreads": 0,
  "ParallelLoadBufferSize": 0,
  "BatchApplyEnabled": false,
  "TaskRecoveryTableEnabled": false
  },
  "FullLoadSettings": {
  "TargetTablePrepMode": "DO_NOTHING",
  "CreatePkAfterFullLoad": false,
  "StopTaskCachedChangesApplied": false,
  "StopTaskCachedChangesNotApplied": false,
  "MaxFullLoadSubTasks": 8,
  "TransactionConsistencyTimeout": 600,
  "CommitRate": 10000
  },
  "Logging": {
  "EnableLogging": true,
  "LogComponents": [
  {
  "Id": "SOURCE_UNLOAD",
  "Severity": "LOGGER_SEVERITY_DEFAULT"
  },
  {
  "Id": "SOURCE_CAPTURE",
  "Severity": "LOGGER_SEVERITY_DEFAULT"
  },
  {
  "Id": "TARGET_LOAD",
  "Severity": "LOGGER_SEVERITY_DEFAULT"
  },
  {
  "Id": "TARGET_APPLY",
  "Severity": "LOGGER_SEVERITY_DEFAULT"
  },
  {
  "Id": "TASK_MANAGER",
  "Severity": "LOGGER_SEVERITY_DEFAULT"
  }
  ]
  },
  "ControlTablesSettings": {
  "historyTimeslotInMinutes": 5,
  "ControlSchema": "",
  "HistoryTimeslotInMinutes": 5,
  "HistoryTableEnabled": true,
  "SuspendedTablesTableEnabled": true,
  "StatusTableEnabled": true
  },
  "StreamBufferSettings": {
  "StreamBufferCount": 3,
  "StreamBufferSizeInMB": 8,
  "CtrlStreamBufferSizeInMB": 5
  },
  "ChangeProcessingDdlHandlingPolicy": {
  "HandleSourceTableDropped": true,
  "HandleSourceTableTruncated": true,
  "HandleSourceTableAltered": true
  },
  "ErrorBehavior": {
  "DataErrorPolicy": "LOG_ERROR",
  "DataTruncationErrorPolicy": "LOG_ERROR",
  "DataErrorEscalationPolicy": "SUSPEND_TABLE",
  "DataErrorEscalationCount": 0,
  "TableErrorPolicy": "SUSPEND_TABLE",
  "TableErrorEscalationPolicy": "STOP_TASK",
  "TableErrorEscalationCount": 0,
  "RecoverableErrorCount": -1,
  "RecoverableErrorInterval": 5,
  "RecoverableErrorThrottling": true,
  "RecoverableErrorThrottlingMax": 1800,
  "ApplyErrorDeletePolicy": "IGNORE_RECORD",
  "ApplyErrorInsertPolicy": "LOG_ERROR",
  "ApplyErrorUpdatePolicy": "LOG_ERROR",
  "ApplyErrorEscalationPolicy": "LOG_ERROR",
  "ApplyErrorEscalationCount": 0,
  "ApplyErrorFailOnTruncationDdl": false,
  "FullLoadIgnoreConflicts": true,
  "FailOnTransactionConsistencyBreached": false,
  "FailOnNoTablesCaptured": false
  },
  "ChangeProcessingTuning": {
  "BatchApplyPreserveTransaction": true,
  "BatchApplyTimeoutMin": 1,
  "BatchApplyTimeoutMax": 30,
  "BatchApplyMemoryLimit": 500,
  "BatchSplitSize": 0,
  "MinTransactionSize": 1000,
  "CommitTimeout": 1,
  "MemoryLimitTotal": 1024,
  "MemoryKeepTime": 60,
  "StatementCacheSize": 50
  },
  "ValidationSettings": {
  "EnableValidation": true,
  "ValidationMode": "ROW_LEVEL",
  "ThreadCount": 5,
  "PartitionSize": 10000,
  "FailureMaxCount": 10000,
  "RecordFailureDelayInMinutes": 5,
  "RecordSuspendDelayInMinutes": 30,
  "MaxKeyColumnSize": 8096,
  "TableFailureMaxCount": 1000,
  "ValidationOnly": false,
  "HandleCollationDiff": false,
  "RecordFailureDelayLimitInMinutes": 0
  },
  "PostProcessingRules": null,
  "CharacterSetSettings": null
  }
  </code></pre>
  
  <p>I don't see any issues with the formatting of my json. I don't understand why it says invalid json. any advice is appreciated. Thank you.</p>