aws dms119 CLI commands available for AWS DMS.
| Command | API Operation | Sample |
|---|---|---|
add-tags-to-resourceAdds metadata tags to an DMS resource, including replication instance, endpoint, subnet group, and migration task. These tags can also be used with cost allocation reporting to track cost associated with DMS resources, or used in a Condition statement in an IAM policy for DMS. For more information, | AddTagsToResource | |
apply-pending-maintenance-actionApplies a pending maintenance action to a resource (for example, to a replication instance). | ApplyPendingMaintenanceAction | |
batch-start-recommendationsEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more informa | BatchStartRecommendations | |
cancel-metadata-model-conversionCancels a single metadata model conversion operation that was started with StartMetadataModelConversion. | CancelMetadataModelConversion | |
cancel-metadata-model-creationCancels a single metadata model creation operation that was started with StartMetadataModelCreation. | CancelMetadataModelCreation | |
cancel-replication-task-assessment-runCancels a single premigration assessment run. This operation prevents any individual assessments from running if they haven't started running. It also attempts to cancel any individual assessments that are currently running. | CancelReplicationTaskAssessmentRun | |
create-data-migrationCreates a data migration using the provided settings. | CreateDataMigration | |
create-data-providerCreates a data provider using the provided settings. A data provider stores a data store type and location information about your database. | CreateDataProvider | |
create-endpointCreates an endpoint using the provided settings. For a MySQL source or target endpoint, don't explicitly specify the database using the DatabaseName request parameter on the CreateEndpoint API call. Specifying DatabaseName when you create a MySQL endpoint replicates all the task tables to this sing | CreateEndpoint | |
create-event-subscriptionCreates an DMS event notification subscription. You can specify the type of source (SourceType) you want to be notified of, provide a list of DMS source IDs (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. If you | CreateEventSubscription | |
create-fleet-advisor-collectorEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more informa | CreateFleetAdvisorCollector | |
create-instance-profileCreates the instance profile using the specified parameters. | CreateInstanceProfile | |
create-migration-projectCreates the migration project using the specified parameters. You can run this action only after you create an instance profile and data providers using CreateInstanceProfile and CreateDataProvider. | CreateMigrationProject | |
create-replication-configCreates a configuration that you can later provide to configure and start an DMS Serverless replication. You can also provide options to validate the configuration inputs before you start the replication. | CreateReplicationConfig | |
create-replication-instanceCreates the replication instance using the specified parameters. DMS requires that your account have certain roles with appropriate permissions before you can create a replication instance. For information on the required roles, see Creating the IAM Roles to Use With the CLI and DMS API. For informa | CreateReplicationInstance | |
create-replication-subnet-groupCreates a replication subnet group given a list of the subnet IDs in a VPC. The VPC needs to have at least one subnet in at least two availability zones in the Amazon Web Services Region, otherwise the service will throw a ReplicationSubnetGroupDoesNotCoverEnoughAZs exception. If a replication subne | CreateReplicationSubnetGroup | |
create-replication-taskCreates a replication task using the specified parameters. | CreateReplicationTask | |
delete-certificateDeletes the specified certificate. | DeleteCertificate | |
delete-connectionDeletes the connection between a replication instance and an endpoint. | DeleteConnection | |
delete-data-migrationDeletes the specified data migration. | DeleteDataMigration | |
delete-data-providerDeletes the specified data provider. All migration projects associated with the data provider must be deleted or modified before you can delete the data provider. | DeleteDataProvider | |
delete-endpointDeletes the specified endpoint. All tasks associated with the endpoint must be deleted before you can delete the endpoint. | DeleteEndpoint | |
delete-event-subscriptionDeletes an DMS event subscription. | DeleteEventSubscription | |
delete-fleet-advisor-collectorEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more informa | DeleteFleetAdvisorCollector | |
delete-fleet-advisor-databasesEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more informa | DeleteFleetAdvisorDatabases | |
delete-instance-profileDeletes the specified instance profile. All migration projects associated with the instance profile must be deleted or modified before you can delete the instance profile. | DeleteInstanceProfile | |
delete-migration-projectDeletes the specified migration project. The migration project must be closed before you can delete it. | DeleteMigrationProject | |
delete-replication-configDeletes an DMS Serverless replication configuration. This effectively deprovisions any and all replications that use this configuration. You can't delete the configuration for an DMS Serverless replication that is ongoing. You can delete the configuration when the replication is in a non-RUNNING and | DeleteReplicationConfig | |
delete-replication-instanceDeletes the specified replication instance. You must delete any migration tasks that are associated with the replication instance before you can delete it. | DeleteReplicationInstance | |
delete-replication-subnet-groupDeletes a subnet group. | DeleteReplicationSubnetGroup | |
delete-replication-taskDeletes the specified replication task. | DeleteReplicationTask | |
delete-replication-task-assessment-runDeletes the record of a single premigration assessment run. This operation removes all metadata that DMS maintains about this assessment run. However, the operation leaves untouched all information about this assessment run that is stored in your Amazon S3 bucket. | DeleteReplicationTaskAssessmentRun | |
describe-account-attributesLists all of the DMS attributes for a customer account. These attributes include DMS quotas for the account and a unique account identifier in a particular DMS region. DMS quotas include a list of resource quotas supported by the account, such as the number of replication instances allowed. The desc | DescribeAccountAttributes | |
describe-applicable-individual-assessmentsProvides a list of individual assessments that you can specify for a new premigration assessment run, given one or more parameters. If you specify an existing migration task, this operation provides the default individual assessments you can specify for that task. Otherwise, the specified parameters | DescribeApplicableIndividualAssessments | |
describe-certificatesProvides a description of the certificate. | DescribeCertificates | |
describe-connectionsDescribes the status of the connections that have been made between the replication instance and an endpoint. Connections are created when you test an endpoint. | DescribeConnections | |
describe-conversion-configurationReturns configuration parameters for a schema conversion project. | DescribeConversionConfiguration | |
describe-data-migrationsReturns information about data migrations. | DescribeDataMigrations | |
describe-data-providersReturns a paginated list of data providers for your account in the current region. | DescribeDataProviders | |
describe-endpoint-settingsReturns information about the possible endpoint settings available when you create an endpoint for a specific database engine. | DescribeEndpointSettings | |
describe-endpoint-typesReturns information about the type of endpoints available. | DescribeEndpointTypes | |
describe-endpointsReturns information about the endpoints for your account in the current region. | DescribeEndpoints | |
describe-engine-versionsReturns information about the replication instance versions used in the project. | DescribeEngineVersions | |
describe-event-categoriesLists categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in Working with Events and Notifications in the Database Migration Service User Guide. | DescribeEventCategories | |
describe-event-subscriptionsLists all the event subscriptions for a customer account. The description of a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status. If you specify SubscriptionName, this action lists the description for that subscription. | DescribeEventSubscriptions | |
describe-eventsLists events for a given source identifier and source type. You can also specify a start and end time. For more information on DMS events, see Working with Events and Notifications in the Database Migration Service User Guide. | DescribeEvents | |
describe-extension-pack-associationsReturns a paginated list of extension pack associations for the specified migration project. An extension pack is an add-on module that emulates functions present in a source database that are required when converting objects to the target database. | DescribeExtensionPackAssociations | |
describe-fleet-advisor-collectorsEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more informa | DescribeFleetAdvisorCollectors | |
describe-fleet-advisor-databasesEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more informa | DescribeFleetAdvisorDatabases | |
describe-fleet-advisor-lsa-analysisEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more informa | DescribeFleetAdvisorLsaAnalysis | |
describe-fleet-advisor-schema-object-summaryEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more informa | DescribeFleetAdvisorSchemaObjectSummary | |
describe-fleet-advisor-schemasEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more informa | DescribeFleetAdvisorSchemas | |
describe-instance-profilesReturns a paginated list of instance profiles for your account in the current region. | DescribeInstanceProfiles | |
describe-metadata-modelGets detailed information about the specified metadata model, including its definition and corresponding converted objects in the target database if applicable. | DescribeMetadataModel | |
describe-metadata-model-assessmentsReturns a paginated list of metadata model assessments for your account in the current region. | DescribeMetadataModelAssessments | |
describe-metadata-model-childrenGets a list of child metadata models for the specified metadata model in the database hierarchy. | DescribeMetadataModelChildren | |
describe-metadata-model-conversionsReturns a paginated list of metadata model conversions for a migration project. | DescribeMetadataModelConversions | |
describe-metadata-model-creationsReturns a paginated list of metadata model creation requests for a migration project. | DescribeMetadataModelCreations | |
describe-metadata-model-exports-as-scriptReturns a paginated list of metadata model exports. | DescribeMetadataModelExportsAsScript | |
describe-metadata-model-exports-to-targetReturns a paginated list of metadata model exports. | DescribeMetadataModelExportsToTarget | |
describe-metadata-model-importsReturns a paginated list of metadata model imports. | DescribeMetadataModelImports | |
describe-migration-projectsReturns a paginated list of migration projects for your account in the current region. | DescribeMigrationProjects | |
describe-orderable-replication-instancesReturns information about the replication instance types that can be created in the specified region. | DescribeOrderableReplicationInstances | |
describe-pending-maintenance-actionsReturns a list of upcoming maintenance events for replication instances in your account in the current Region. | DescribePendingMaintenanceActions | |
describe-recommendation-limitationsEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more informa | DescribeRecommendationLimitations | |
describe-recommendationsEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more informa | DescribeRecommendations | |
describe-refresh-schemas-statusReturns the status of the RefreshSchemas operation. | DescribeRefreshSchemasStatus | |
describe-replication-configsReturns one or more existing DMS Serverless replication configurations as a list of structures. | DescribeReplicationConfigs | |
describe-replication-instance-task-logsReturns information about the task logs for the specified task. | DescribeReplicationInstanceTaskLogs | |
describe-replication-instancesReturns information about replication instances for your account in the current region. | DescribeReplicationInstances | |
describe-replication-subnet-groupsReturns information about the replication subnet groups. | DescribeReplicationSubnetGroups | |
describe-replication-table-statisticsReturns table and schema statistics for one or more provisioned replications that use a given DMS Serverless replication configuration. | DescribeReplicationTableStatistics | |
describe-replication-task-assessment-resultsReturns the task assessment results from the Amazon S3 bucket that DMS creates in your Amazon Web Services account. This action always returns the latest results. For more information about DMS task assessments, see Creating a task assessment report in the Database Migration Service User Guide. | DescribeReplicationTaskAssessmentResults | |
describe-replication-task-assessment-runsReturns a paginated list of premigration assessment runs based on filter settings. These filter settings can specify a combination of premigration assessment runs, migration tasks, replication instances, and assessment run status values. This operation doesn't return information about individual as | DescribeReplicationTaskAssessmentRuns | |
describe-replication-task-individual-assessmentsReturns a paginated list of individual assessments based on filter settings. These filter settings can specify a combination of premigration assessment runs, migration tasks, and assessment status values. | DescribeReplicationTaskIndividualAssessments | |
describe-replication-tasksReturns information about replication tasks for your account in the current region. | DescribeReplicationTasks | |
describe-replicationsProvides details on replication progress by returning status information for one or more provisioned DMS Serverless replications. | DescribeReplications | |
describe-schemasReturns information about the schema for the specified endpoint. | DescribeSchemas | |
describe-table-statisticsReturns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted. Note that the "last updated" column the DMS console only indicates the time that DMS last updated the table statistics record for a table. It does not indicate the time of th | DescribeTableStatistics | |
export-metadata-model-assessmentSaves a copy of a database migration assessment report to your Amazon S3 bucket. DMS can save your assessment report as a comma-separated value (CSV) or a PDF file. | ExportMetadataModelAssessment | |
get-target-selection-rulesConverts source selection rules into their target counterparts for schema conversion operations. | GetTargetSelectionRules | |
import-certificateUploads the specified certificate. | ImportCertificate | |
list-tags-for-resourceLists all metadata tags attached to an DMS resource, including replication instance, endpoint, subnet group, and migration task. For more information, see Tag data type description. | ListTagsForResource | |
modify-conversion-configurationModifies the specified schema conversion configuration using the provided parameters. | ModifyConversionConfiguration | |
modify-data-migrationModifies an existing DMS data migration. | ModifyDataMigration | |
modify-data-providerModifies the specified data provider using the provided settings. You must remove the data provider from all migration projects before you can modify it. | ModifyDataProvider | |
modify-endpointModifies the specified endpoint. For a MySQL source or target endpoint, don't explicitly specify the database using the DatabaseName request parameter on the ModifyEndpoint API call. Specifying DatabaseName when you modify a MySQL endpoint replicates all the task tables to this single database. For | ModifyEndpoint | |
modify-event-subscriptionModifies an existing DMS event notification subscription. | ModifyEventSubscription | |
modify-instance-profileModifies the specified instance profile using the provided parameters. All migration projects associated with the instance profile must be deleted or modified before you can modify the instance profile. | ModifyInstanceProfile | |
modify-migration-projectModifies the specified migration project using the provided parameters. The migration project must be closed before you can modify it. | ModifyMigrationProject | |
modify-replication-configModifies an existing DMS Serverless replication configuration that you can use to start a replication. This command includes input validation and logic to check the state of any replication that uses this configuration. You can only modify a replication configuration before any replication that uses | ModifyReplicationConfig | |
modify-replication-instanceModifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request. Some settings are applied during the maintenance window. | ModifyReplicationInstance | |
modify-replication-subnet-groupModifies the settings for the specified replication subnet group. | ModifyReplicationSubnetGroup | |
modify-replication-taskModifies the specified replication task. You can't modify the task endpoints. The task must be stopped before you can modify it. For more information about DMS tasks, see Working with Migration Tasks in the Database Migration Service User Guide. | ModifyReplicationTask | |
move-replication-taskMoves a replication task from its current replication instance to a different target replication instance using the specified parameters. The target replication instance must be created with the same or later DMS version as the current replication instance. | MoveReplicationTask | |
reboot-replication-instanceReboots a replication instance. Rebooting results in a momentary outage, until the replication instance becomes available again. | RebootReplicationInstance | |
refresh-schemasPopulates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the DescribeRefreshSchemasStatus operation. | RefreshSchemas | |
reload-replication-tablesReloads the target database table with the source data for a given DMS Serverless replication configuration. You can only use this operation with a task in the RUNNING state, otherwise the service will throw an InvalidResourceStateFault exception. | ReloadReplicationTables | |
reload-tablesReloads the target database table with the source data. You can only use this operation with a task in the RUNNING state, otherwise the service will throw an InvalidResourceStateFault exception. | ReloadTables | |
remove-tags-from-resourceRemoves metadata tags from an DMS resource, including replication instance, endpoint, subnet group, and migration task. For more information, see Tag data type description. | RemoveTagsFromResource | |
run-fleet-advisor-lsa-analysisEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more informa | RunFleetAdvisorLsaAnalysis | |
start-data-migrationStarts the specified data migration. | StartDataMigration | |
start-extension-pack-associationApplies the extension pack to your target database. An extension pack is an add-on module that emulates functions present in a source database that are required when converting objects to the target database. | StartExtensionPackAssociation | |
start-metadata-model-assessmentCreates a database migration assessment report by assessing the migration complexity for your source database. A database migration assessment report summarizes all of the schema conversion tasks. It also details the action items for database objects that can't be converted to the database engine of | StartMetadataModelAssessment | |
start-metadata-model-conversionConverts your source database objects to a format compatible with the target database. | StartMetadataModelConversion | |
start-metadata-model-creationCreates source metadata model of the given type with the specified properties for schema conversion operations. This action supports only these directions: from SQL Server to Aurora PostgreSQL, or from SQL Server to RDS for PostgreSQL. | StartMetadataModelCreation | |
start-metadata-model-export-as-scriptSaves your converted code to a file as a SQL script, and stores this file on your Amazon S3 bucket. | StartMetadataModelExportAsScript | |
start-metadata-model-export-to-targetApplies converted database objects to your target database. | StartMetadataModelExportToTarget | |
start-metadata-model-importLoads the metadata for all the dependent database objects of the parent object. This operation uses your project's Amazon S3 bucket as a metadata cache to improve performance. | StartMetadataModelImport | |
start-recommendationsEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more informa | StartRecommendations | |
start-replicationFor a given DMS Serverless replication configuration, DMS connects to the source endpoint and collects the metadata to analyze the replication workload. Using this metadata, DMS then computes and provisions the required capacity and starts replicating to the target endpoint using the server resource | StartReplication | |
start-replication-taskStarts the replication task. For more information about DMS tasks, see Working with Migration Tasks in the Database Migration Service User Guide. | StartReplicationTask | |
start-replication-task-assessmentStarts the replication task assessment for unsupported data types in the source database. You can only use this operation for a task if the following conditions are true: The task must be in the stopped state. The task must have successful connections to the source and target. If either of t | StartReplicationTaskAssessment | |
start-replication-task-assessment-runStarts a new premigration assessment run for one or more individual assessments of a migration task. The assessments that you can specify depend on the source and target database engine and the migration type defined for the given task. To run this operation, your migration task must already be crea | StartReplicationTaskAssessmentRun | |
stop-data-migrationStops the specified data migration. | StopDataMigration | |
stop-replicationFor a given DMS Serverless replication configuration, DMS stops any and all ongoing DMS Serverless replications. This command doesn't deprovision the stopped replications. | StopReplication | |
stop-replication-taskStops the replication task. | StopReplicationTask | |
test-connectionTests the connection between the replication instance and the endpoint. | TestConnection | |
update-subscriptions-to-event-bridgeMigrates 10 active and enabled Amazon SNS subscriptions at a time and converts them to corresponding Amazon EventBridge rules. By default, this operation migrates subscriptions only when all your replication instance versions are 3.4.5 or higher. If any replication instances are from versions earlie | UpdateSubscriptionsToEventBridge |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterDatabase Migration Service