Add tag to chef node on knife ec2 server create

I know that it’s now possible to add a AWS tag when starting an instance with knife ec2 server create using -T or --tags, but I’m looking for the ability to add a tag to the chef node at the time of server creation. Does such ability exist right now with knife-ec2 (doesn’t appear so when I was reading the help document)? Should I create a ticket for it on tickets.ospcode.com?

Nuo,

I am not really following you question.... I mean when you run the
command "knife ec2 server create....." w/ the -T parameter you are creating
an instance and tagging it. So what else is it that you are looking to
accomplish here?

-John

On Tue, Jul 3, 2012 at 3:38 PM, Nuo Yan yan.nuo@gmail.com wrote:

I know that it's now possible to add a AWS tag when starting an instance
with knife ec2 server create using -T or --tags, but I'm looking for the
ability to add a tag to the chef node at the time of server creation. Does
such ability exist right now with knife-ec2 (doesn't appear so when I was
reading the help document)? Should I create a ticket for it on
tickets.ospcode.com?

-T adds AWS tags, Chef also has tags for its nodes.

The answer (in case anybody else has similar need), --json-attributes
"{"tags":["TAG_NAME"]}" would allow adding chef tags (or any
other arbitrary attributes) to the node.

On Tue, Jul 3, 2012 at 12:46 PM, John Dyer johntdyer@gmail.com wrote:

Nuo,

I am not really following you question.... I mean when you run the
command "knife ec2 server create....." w/ the -T parameter you are creating
an instance and tagging it. So what else is it that you are looking to
accomplish here?

-John

On Tue, Jul 3, 2012 at 3:38 PM, Nuo Yan yan.nuo@gmail.com wrote:

I know that it's now possible to add a AWS tag when starting an instance
with knife ec2 server create using -T or --tags, but I'm looking for the
ability to add a tag to the chef node at the time of server creation. Does
such ability exist right now with knife-ec2 (doesn't appear so when I was
reading the help document)? Should I create a ticket for it on
tickets.ospcode.com?