Discussion:
Opt-In for AMI usage via fog?
Brian Webb
2013-04-29 00:42:07 UTC
Permalink
If I try to bootstrap a new AWS instance using a AWS Marketplace AMI an
error gets thrown saying your account needs to opt-in to use the ami.
(ami-867edcef in us-east-1: Ubuntu Server 12.04 LTS). Is there any way to
opt-in via fog? Here's the stacktrace:

Fog::Compute::AWS::Error: OptInRequired => 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=5hoheke3dcdw953i7sq087tpb
from
/Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/excon-0.20.1/lib/excon/middlewares/expects.rb:10:in
`response_call'
from
/Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/excon-0.20.1/lib/excon/connection.rb:332:in
`response'
from
/Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/excon-0.20.1/lib/excon/connection.rb:226:in
`request'
from
/Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/fog-1.10.1/lib/fog/core/connection.rb:21:in
`request'
from
/Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/fog-1.10.1/lib/fog/aws/compute.rb:384:in
`_request'
from
/Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/fog-1.10.1/lib/fog/aws/compute.rb:379:in
`request'
from
/Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/fog-1.10.1/lib/fog/aws/requests/compute/run_instances.rb:119:in
`run_instances'
from
/Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/fog-1.10.1/lib/fog/aws/models/compute/server.rb:173:in
`save'
from
/Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/fog-1.10.1/lib/fog/core/collection.rb:52:in
`create'
from /Users/brian/Sites/brown-badger/app/models/server.rb:194:in `bootstrap'
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Rupak Ganguly
2013-04-29 02:30:14 UTC
Permalink
If there is a way using the API to opt-in we can do it Fog. Looking at the
error message it looks like the terms need to be accepted by visiting the
URL specified.

Thanks,
Rupak Ganguly
678-648-7434

On Apr 28, 2013, at 9:50 PM, Brian Webb <brian-***@public.gmane.org>
wrote:

If I try to bootstrap a new AWS instance using a AWS Marketplace AMI an
error gets thrown saying your account needs to opt-in to use the ami.
(ami-867edcef in us-east-1: Ubuntu Server 12.04 LTS). Is there any way to
opt-in via fog? Here's the stacktrace:

Fog::Compute::AWS::Error: OptInRequired => 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=5hoheke3dcdw953i7sq087tpb
from /Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/excon-0.20.1/lib/excon/middlewares/expects.rb:10:in
`response_call'
from /Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/excon-0.20.1/lib/excon/connection.rb:332:in
`response'
from /Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/excon-0.20.1/lib/excon/connection.rb:226:in
`request'
from /Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/fog-1.10.1/lib/fog/core/connection.rb:21:in
`request'
from /Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/fog-1.10.1/lib/fog/aws/compute.rb:384:in
`_request'
from /Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/fog-1.10.1/lib/fog/aws/compute.rb:379:in
`request'
from /Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/fog-1.10.1/lib/fog/aws/requests/compute/run_instances.rb:119:in
`run_instances'
from /Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/fog-1.10.1/lib/fog/aws/models/compute/server.rb:173:in
`save'
from /Users/brian/.rvm/gems/ruby-1.9.3-p0-***@public.gmane.org/gems/fog-1.10.1/lib/fog/core/collection.rb:52:in
`create'
from /Users/brian/Sites/brown-badger/app/models/server.rb:194:in `bootstrap'
--
You received this message because you are subscribed to the Google Groups
"ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
geemus (Wesley Beary)
2013-04-29 02:38:42 UTC
Permalink
Yeah, as Rupak said I think you need to follow the link to opt-in. That
being said, once you have done this once I would expect you'll not ever
need to repeat the process (at least not for the same set of AWS
credentials).
Post by Rupak Ganguly
If there is a way using the API to opt-in we can do it Fog. Looking at the
error message it looks like the terms need to be accepted by visiting the
URL specified.
Thanks,
Rupak Ganguly
678-648-7434
If I try to bootstrap a new AWS instance using a AWS Marketplace AMI an
error gets thrown saying your account needs to opt-in to use the ami.
(ami-867edcef in us-east-1: Ubuntu Server 12.04 LTS). Is there any way to
Fog::Compute::AWS::Error: OptInRequired => 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=5hoheke3dcdw953i7sq087tpb
`response_call'
`response'
`request'
`request'
`_request'
`request'
`run_instances'
`save'
`create'
from /Users/brian/Sites/brown-badger/app/models/server.rb:194:in `bootstrap'
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Loading...