rundeck-plugins / rundeck-ec2-nodes-plugin

Get resource node data from Amazon EC2
86 stars 45 forks source link

Filter documentation improvement #21

Closed Tokynet closed 10 years ago

Tokynet commented 10 years ago

The docs should have better examples for the filter options. I was trying to filter my instances by AWS TAGs. Going by the documentation here and AWS I thought the filter should look like: Filter.1.Name=tag:$MYTAGNAME ; Filter.1.Value.1=$MYTAGVALUE

When in reality it should be: tag:$MYTAGNAME=$MYTAGVALUE

ozbillwang commented 8 years ago

@gschueler

I use filter tag:node_environment=uat or tag:node_environment=dev, got the nodes list.

But if I merge them as tag:node_environment=uat;tag:node_environment=dev, no node got listed.

I'd like to list both uat and dev nodes.

Rundeck and ec2-nodes-plugin are all latest version.

https://github.com/rundeck-plugins/rundeck-ec2-nodes-plugin/commit/ad48597184b9130cc61bb105159a0bb4570275e8#diff-1e290ac8433d555bce009b162cb869d0R39

gschueler commented 8 years ago

@SydOps ok, can you file another issue for that? I think the problem is the query is not using a value list, it is only using a single value, so if you specify the same filter name twice, it is not working

ozbillwang commented 8 years ago

@gschueler

I am fine with this issue now, I create two resources profiles in one project, one uses filter of tag:node_environment=uat, the other uses tag:node_environment=dev, I can see all of them now.

Do you still need me raise a new ticket?

gschueler commented 8 years ago

@SydOps sure, i think it is a good feature, saves the need to do multiple API calls