Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding tag_hash functionality to ec2tag watcher. #231

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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