如何从SDK选择加入AWS EC2 AMI? [英] How to opt-in for AWS EC2 AMI from SDK?

查看:380
本文介绍了如何从SDK选择加入AWS EC2 AMI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用来自以下版本的CentOS AMI ami-21682673 启动AWS EC2实例EC2 SDK。 AMI本身是一种市场产品,它需要接受许可条款。

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.

我遇到的错误:


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

这是可以从AWS网页接受条款。但是我发现没有办法从SDK接受它。对此有任何变通办法吗?

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

我知道订阅一旦被接受,订阅将保存在AWS中。但是,我的方案是使用空白的新配置文件,其中没有订阅且仅可访问SDK。谢谢您的帮助!

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!

推荐答案

Marketplace发布的AMI的条款和条件只能通过网站接受,而不能通过命令行或API。必须向用户显示EULA(对于在市场中的Debian AMI,则是向客户显示的是Debian社会合同)。

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).

这篇关于如何从SDK选择加入AWS EC2 AMI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆