How to opt-in for AWS EC2 AMI from SDK?

本秂侑毒 提交于 2019-11-30 18:11:41

问题


I am trying to launch an AWS EC2 instance using CentOS AMI ami-21682673 from EC2 SDK. The AMI itself is a marketplace product and it requires an acceptance of the licensing terms.

The error I am getting:

In order to use this AWS Marketplace product 
you need to accept terms and subscribe. To do so please visit 
http://aws.amazon.com/marketplace/pp?sku=eggbgx9svw4xhzs1omttdv29q

It is possible to accept terms from AWS web page. But I found no way to accept it from SDK. Any workarounds for this?

I know that the subscription will be saved in AWS once accepted. But my scenario is for a blank new profile with no subscriptions and SDK access only. Thanks for any help!


回答1:


The terms and conditions for Marketplace published AMIs can only be accepted via the web site, and not via the command line or API directly. The EULA is required to be shown to the customer (in the case of the Debian AMIs in Marketplace, it is the Debian Social Contract which is displayed to the customer).



来源:https://stackoverflow.com/questions/24504206/how-to-opt-in-for-aws-ec2-ami-from-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!