Recovering windows instance might fail with error: The request must contain the parameter ImageID

Recovering windows instance might fail with error: The request must contain the parameter ImageID

Issue:

When recovering instance from DR account to DR account, it might fail with the following error in logs:

2020-09-22 00:16:35,135:[140237924660992][----------] ERROR:  execute_api_call(__init__.py:140)  Failed calling ec2.run_instances (region: me-south-1, account: a2 (12345678), user: General). Exception: The request must contain the parameter ImageId (MissingParameter)


And this error in UI:



Solution:
When recovering a Windows instance and the image id is not found (e.g., cross account DR), You should locate the appropriate image id and fill it at the recovery form in the UI.
This can be done with the help of the AMI Assistant in the recovery UI