Restore the EC2 instance using the exposed AMI file. You will receive a JSON response with an ImageId key and value. Store the value because it will be needed to start the instance.
Create a new EC2 instance with SSH access. Add the generated key to the new instance. If the operation is successful you will receive a JSON response with the information related to the new EC2 instance. Store the InstanceId value as reference to the new instance.