-
Notifications
You must be signed in to change notification settings - Fork 814
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
[util] Incorporating security-groups into tags collected from ec2 #1951
Conversation
@tmichelet any opinion on whether or not it's a good idea to add this here? (internal) https://trello.com/c/bHtGDDmS/35-agent-not-pulling-aws-host-tags |
I think that makes sense for this use case |
reading the doc, it seems like from within a VPC, when people update a security group this metadata won't be updated:
Is that a use case we want to handle? if not, 👍 good to merge, otherwise we'd need some more work |
Also, this will churn all our contexts, is this something we want or do we want to have an option in the config for this tag? |
ea34d32
to
f78d45e
Compare
Updated this PR by adding |
@tmichelet is this ready to be merged ? Should we add another feature flag in datadog.conf to avoid churning existing contexts ? |
@remh cc @JohnLZeller yes I believe we should add another feature flag in |
f78d45e
to
6c96027
Compare
@tmichelet how's this? |
👍 good to merge |
[util] Incorporating security-groups into tags collected from ec2
Looks like the agent pulls AWS host tags, but doesn't pull
security-groups
. Additionally, it doesn't look like there is a good way to grab security group ids from EC2, however we do have access to the security group names. The fix to apply here is simply to make sure we add that to the tags collected assecurity-group-name:<name>
.