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!
Choosing an AMI during the EC2 launch 1) Sign in to the Amazon EC2 console and then select from the available AWS regions in which you wish to launch your instance. 2) Next, from the dashboard, click the “Launch Instance” button. 3) This will open the section where you can now choose an Amazon Machine Image (AMI).
To attach an IAM role to an instanceOpen the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . In the navigation pane, choose Instances. Select the instance, choose Actions, Security, Modify IAM role. Select the IAM role to attach to your instance, and choose Save.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With