How to participate in AWS EC2 AMI from SDK?

I am trying to start an AWS EC2 instance using the CentOS AMI ami-21682673 from the EC2 SDK. AMI itself is a product on the market and requires the adoption of licensing terms.

The error I am getting is:

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

You can accept the terms from the AWS webpage. But I did not find a way to accept it from the SDK. Any workarounds for this?

I know that the subscription will be saved in AWS after its adoption. But my scenario is for a clean new profile without subscription and access only to the SDK. Thanks for any help!

+4
source share
1 answer

AMI publishing terms can only be accepted through the website and not through the command line or API directly. The EULA exam must be shown to the client (in the case of Debian AMI in the Marketplace, this is the Debian social contract that is displayed to the client).

+2
source

Source: https://habr.com/ru/post/1546649/


All Articles