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

Filter resources based on dynamic tag name following some pattern. #5184

Open
AbhishekSinha47 opened this issue Dec 24, 2019 · 5 comments
Open

Comments

@AbhishekSinha47
Copy link

How to filter resources based on dynamic tag name following some pattern? The tag name is say 'custodian-xyz', where xyz changes but 'custodian' is constant. Can we filter based on the tag name using regex like we can apply 'regex' option to 'Values'. Eg:

filters:
    - type: value
      key: tag:custodian*
      value: true
      op: regex

I have put tag name as 'custodian*' but that does not seem to work. @kapilt can you please guide?

@kapilt
Copy link
Collaborator

kapilt commented Dec 24, 2019

can you describe the use case, are you just asserting the presence of the named dynamic tag on a resource, or its value?

@AbhishekSinha47
Copy link
Author

Yeah, I am just asserting the presence of the named dynamic tag on a resource. Eg: tag name 'custodian-xyz', here 'custodian-' remains constant whereas 'xyz' varies in different resources. Hope this makes it clear.

@AbhishekSinha47
Copy link
Author

@kapilt any suggestions, on how to proceed?

@AbhishekSinha47
Copy link
Author

Needed help for this kind of urgently, any guidance would be appreciated @kapilt @thisisshi

@AbhishekSinha47
Copy link
Author

Any updates? @thisisshi @kapilt

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

No branches or pull requests

2 participants