NEW - You can now accelerate your migration and modernization with AWS Transform. Read Getting Started in the AWS Transform User Guide.
Register server credentials
Once you have the MGN connector set up and ready to use, you can register source servers to the MGN connector. To do so click on the MGN connector name, then click "Register servers".
The servers list contains the source servers that were imported via the import feature or discovered by the agentless replication process.
Select the source servers you want to register to the MGN connector. Click the "Register servers with the MGN connector" button.
To perform actions on your source server, you must provide source server credentials. Server credentials are stored in AWS Secrets Manager. You can use an existing secret from AWS Secrets Manager or create a new one. You can create the credentials in the MGN console by choosing Register server credentials from the Actions menu.
-
Use existing secret
-
Using AWS Secrets Manager, MGN can use the stored source server credentials to connect to the source machine and perform actions on it. You must specify the secret that stores the source server credentials.
-
You may designate the same secret for multiple source servers if they share the same credentials.
-
Be sure to add the
AWSApplicationMigrationServiceManagedtag to the secret with the value set toTrue.
-
-
Create new secret
-
Secret name - Enter a name for your new secret. The name you specify will be saved in AWS Secrets Manager.
-
Encryption key - To encrypt, either use the KMS key provided by Secrets Manager or create your own customer managed KMS key.
-
For Windows servers:
-
Communication protocol - This is the WinRM connection protocol between the MGN Connector and source servers used to install the agents. Specify either HTTP or HTTPS. We recommend HTTPS for secure and encrypted communication. Default is HTTPS.
-
UserName - A user that is authorized to install the agent and perform actions on the source server.
-
Password - The specific source server's password.
-
CertificateAuthority (Required if WinCaValidation is true) - The CA public certificate in PEM format, base64-encoded. Must be omitted or empty if WinCaValidation is false.
-
-
For Linux servers:
-
UserName - A user that is authorized to install the agent and perform actions on the source server.
-
Credentials - Provide one of the following:
-
PrivateKey - The source server's RSA private key in PEM format, base64-encoded. (The connector uses RSA keys only.)
-
Password - The specific source server's password (alternative to PrivateKey).
-
-
HostKey (Required if LinuxHostKeyValidation is true) - The source server's public host key in the format:
algorithm_name base64_public_key(e.g.,ssh-ed25519 AAAA...). This is the full base64 public key blob from ssh-keyscan output, not a fingerprint. Must be omitted if LinuxHostKeyValidation is false.
-
-
Tags - Secret key-value pairs will be assigned to the new secret. Note that
AWSApplicationMigrationServiceManagedtag will also be added with the value set toTrue. -
Here is the structure of the secrets manager entry:
{ "WinConnectionProtocol": "HTTPS", "WinUserName": "windows_username", "WinPassword": "windows_password", "WinCertificateAuthority": "<base64-encoded CA public certificate (PEM)>", "WinCaValidation": true, "LinuxUserName": "linux_username", "LinuxPrivateKey": "<base64-encoded RSA private key (PEM)>", "LinuxPassword": "<alternative to LinuxPrivateKey>", "LinuxHostKey": "ssh-ed25519 <base64 public host key>", "LinuxHostKeyValidation": true } -
Important notes on secret format:
-
Base64 encoding:
LinuxPrivateKeyandWinCertificateAuthoritymust be base64-encoded PEM values. If you create the secret in the MGN console, encoding is performed automatically. If you create the secret manually in AWS Secrets Manager, you must encode these values yourself. Raw PEM text will cause connection failures. -
Private key format:
LinuxPrivateKeymust be an RSA private key. Other key types are not supported. -
Validation flags:
WinCaValidationandLinuxHostKeyValidationare required fields and must always be present in the secret. -
Validation constraints:
WinCertificateAuthorityis required only whenWinCaValidationis true.LinuxHostKeyis required only whenLinuxHostKeyValidationis true. When their validation flag is false, these fields should be omitted or empty. -
HTTP protocol constraint:
WinCaValidationmust be false whenWinConnectionProtocolis set to HTTP. -
HostKey format: The
LinuxHostKeyvalue is the full base64 public key blob from ssh-keyscan output (the second field), in the formatalgorithm_name base64_key. It is NOT a fingerprint or thumbprint.
-
-
-
Note
The CA/HostKey validation is controlled by the validation flags (
WinCaValidationandLinuxHostKeyValidation). When a validation flag is set to true, you must provide the corresponding CA or HostKey value. When set to false, the CA or HostKey fields should be omitted or left empty. If you do not provide the required value when validation is enabled, credential validation will fail with a "mandatory field not found" error.