Discussion:
Limit ami search to "my amis"?
Kubes
2013-08-09 18:13:48 UTC
Permalink
Is there a means to search just "my amis"?

Currently we are using a filter: images.all('owner-id' => owner_id) but it
seems to search public amis .... and thus its slow.


Thanks
--
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.
David Kerr
2013-09-03 19:38:59 UTC
Permalink
This seems to work nicely:

filter = {"Owner" => "self"}
$ec2.images.all( filter ).each { |x|
puts x.inspect
}
Post by Kubes
Is there a means to search just "my amis"?
Currently we are using a filter: images.all('owner-id' => owner_id) but
it seems to search public amis .... and thus its slow.
Thanks
--
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.
Continue reading on narkive:
Loading...