Users who want to change the vCenter or AWS credentials used by the Application Migration Service appliance should follow these steps. This change requires root privileges on the appliance:
-
In the command prompt, navigate to the aws-vcenter-client directory:
cd /var/lib/aws-vcenter-client/1.1.8/
-
Run the vCenter configuration update tool with this command:
sudo ./vcenter_configuration_update
-
When running the vCenter configuration update tool, you will be prompted to provide the necessary credentials. Follow these steps to update the credentials. Provide the required info in each field and then press Enter:
-
New vCenter username (--new-vcenter-username)
-
New vCenter password (--new-vcenter-password)
-
New AWS Secret Key ID (--new-aws-access-key-id)
-
New AWS Secret Access Key (--new-aws-secret-access-key)
-
New path to the CA (optional) (--new-ca-path)
-
-
If you do not provide the `--new-ca-path` flag, the tool first asks if you want to update the CA path. If you answer yes, it prompts you for the new CA path. If you answer no, the tool uses the CA path from the previous configuration. The tool verifies the new vCenter and AWS credentials by attempting to connect to vCenter and Application Migration Service using them.
-
Upon successful connection to vCenter and Application Migration Service, the tool will save the new credentials and restart the necessary services.
-
In case of failure to connect to vCenter or Application Migration Service, the new credentials will not be stored, and the previous configuration will be retained. This error message is displayed:
Failed to connect to the vCenter endpoint or MGN using the new connection details. The configuration changes will not be applied.