Discussion:
How to Tag an AMI?
David Kerr
2013-09-03 17:52:38 UTC
Permalink
Amazon seems to have the ability to tag an AMI, which I'd like to use for
my backups.

However it seems that the create_image( ... ) doesn't support that.

Also:
image = $ec2.instance.create_image(server.id, image_name, image_description
, true)

"image" doesn't have a tag/tags/add_tag method.

Any idea how i would do this?

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 18:22:30 UTC
Permalink
I figured it out.
$ec2.create_tags(image_id, {:key => 'value'})
--
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...