Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Can't get multiple tag values to work #24

Closed
MrMMorris opened this issue Jul 2, 2014 · 7 comments
Closed

Can't get multiple tag values to work #24

MrMMorris opened this issue Jul 2, 2014 · 7 comments

Comments

@MrMMorris
Copy link

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
Copy link
Contributor

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

@MrMMorris
Copy link
Author

@rjocoleman I am using knife-ec2

@MrMMorris
Copy link
Author

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link

hbceylan commented Dec 8, 2018

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

@erez-rabih
Copy link
Contributor

@hbceylan #50 supposed to resolve your issues

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants