forward3d / cap-ec2

Capify-EC2 rewritten for Capistrano v3
MIT License
181 stars 118 forks source link

Can't get multiple tag values to work #24

Closed MrMMorris closed 10 years ago

MrMMorris commented 10 years ago

When specifying multiple tag values for an instance, I can only get tags with single values to work.

These give me "ERROR: Tags should be entered in a key = value pair": -T Project=cms,Stages=pre,Roles='web,app,db' -T Project=cms,Stages=pre,Roles=web,app,db

This results in only the last Roles tag working: -T Project=cms,Stages=pre,Roles=web,Roles=app,Roles=db

I know this might be more of an ec2 question, but I am only using tags in relation to cap-ec2 so I thought I'd ask here.

rjocoleman commented 10 years ago

Where is this error coming from? What are you running with -T?

MrMMorris commented 10 years ago

@rjocoleman I am using knife-ec2

MrMMorris commented 10 years ago

from the looks of it you can't specify multiple values in a tag. I can specify a value string that is space separated, but not comma separated.

rjocoleman commented 10 years ago

This is a knife-ec2 issue. Try setting your tags a different way (via the AWS Console or AWS CLI) and you'll see this works as documented.. https://github.com/opscode/knife-ec2/blob/c120726fe1be4f4e4da2009ad6a467debbb36808/lib/chef/knife/ec2_server_create.rb#L83-L87

erez-rabih commented 10 years ago

I had this problem as well. Just use another separator for your values which is different than , (comma) I chose ; and that allowed me to insert multiple values for a single tag

hbceylan commented 5 years ago

@erez-rabih yes allowed but doesn't work..

erez-rabih commented 5 years ago

@hbceylan https://github.com/forward3d/cap-ec2/pull/50 supposed to resolve your issues