Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Step 4: Store Database Credentials in AWS Secrets Manager

Focus mode
Step 4: Store Database Credentials in AWS Secrets Manager - Database Migration Guide

To connect to your source and target databases in an AWS DMS migration project, store your database credentials in AWS Secrets Manager. Make sure that you replicate these secrets to your AWS Region.

To store your source database credentials in AWS Secrets Manager

  1. Sign in to the AWS Management Console and open the AWS Secrets Manager console at https://console.aws.amazon.com/secretsmanager/.

  2. Choose your AWS Region.

  3. Choose Store a new secret. The Choose secret type page opens.

  4. For Secret type, choose Credentials for other database.

  5. For User name and Password, enter the credentials of the database user that you created for your source database in Step 2.

  6. For Database, choose PostgreSQL.

  7. For Server address, Database name, and Port, enter your PostgreSQL database connection information.

  8. Choose Next. The Configure secret page opens.

  9. For Secret name, enter dm-postgresql-source.

  10. Choose Next. The Configure rotation page opens.

  11. Choose Next. The Review page opens.

  12. Choose Store.

To store your target database credentials in AWS Secrets Manager

  1. Sign in to the AWS Management Console and open the AWS Secrets Manager console at https://console.aws.amazon.com/secretsmanager/.

  2. Choose your AWS Region.

  3. Choose Store a new secret. The Choose secret type page opens.

  4. For Secret type, choose Credentials for Amazon RDS database.

  5. For User name and Password, enter the credentials of the database user that you created for your target database in Step 3.

  6. For Database, choose your Amazon RDS for PostgreSQL DB instance.

  7. Choose Next. The Configure secret page opens.

  8. For Secret name, enter dm-postgresql-target.

  9. Choose Next. The Configure rotation page opens.

  10. Choose Next. The Review page opens.

  11. Choose Store.

Use these secrets when you create your migration project in Step 7.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.