Skip to content

Conversation

microwavenby
Copy link

Migrated to v2 of AWS-SDK
Updated rspec tests
Updated README.md to cover new functionality

This adds the ability to define a "tag_hash" key in the options block for the ec2tag watcher.

I had the use case of wanting to target only the intersection of two tags -- such as

tag_hash:
  environment: staging
  some_service: installed

And the existing watcher functionality did not suffice.

This is backwards compatible with existing synapse.yaml configuration files (and the tag_name/tag_value keys for ec2tag)

Cheers,
Alex

@jolynch
Copy link
Collaborator

jolynch commented Apr 19, 2017

Can we somehow integrate this this solution with label filters instead? This way ec2tag filters nodes in a consistent way with the zookeeper watcher?

Perhaps ec2 instances could be tagged with a "synapse_labels" tag or something that get's emitted as labels from discover_instances ?

What do you think?

@microwavenby
Copy link
Author

microwavenby commented Apr 19, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants