(For AWS) If the specified AMI is not subscribed in the given region an error message appears
While restoring from snapshot copy if the specified AMI is not subscribed in the given region, then the following error message appears:
botocore.exceptions.ClientError: An error occurred (OptInRequired) when calling the RunInstances operation: In order to use this AWS Marketplace product you need to accept terms and subscribe. To do so please visit https://aws.amazon.com/marketplace/pp?sku=b23ibdl39h2okr9co7jf8hr90";
Workaround:
Select the AMI which is subscribed in the given region or subscribe the AMI before performing the restore.