-
Notifications
You must be signed in to change notification settings - Fork 342
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
aws_ec2 inventory plugin - Filters does not support AND logic of multiple tag-key values #1354
Open
1 task done
Comments
Files identified in the description: If these files are inaccurate, please update the |
tremble
changed the title
Filters does not support AND logic of multiple tag-key values
aws_ec2 inventory plugin - Filters does not support AND logic of multiple tag-key values
Feb 9, 2023
abikouo
pushed a commit
to abikouo/amazon.aws
that referenced
this issue
Sep 18, 2023
…l_response_codes is set (ansible-collections#1354) elb_target_group make health_check_protocol required if health_check_path or successful_response_codes is set fixes: ansible-collections#29 SUMMARY health_check_path and successful_response_codes were previously silently dropped on the floor if health_check_protocol wasn't set. ISSUE TYPE Bugfix Pull Request COMPONENT NAME elb_target_group ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis <None>
abikouo
pushed a commit
to abikouo/amazon.aws
that referenced
this issue
Sep 18, 2023
…l_response_codes is set (ansible-collections#1354) elb_target_group make health_check_protocol required if health_check_path or successful_response_codes is set fixes: ansible-collections#29 SUMMARY health_check_path and successful_response_codes were previously silently dropped on the floor if health_check_protocol wasn't set. ISSUE TYPE Bugfix Pull Request COMPONENT NAME elb_target_group ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis <None>
abikouo
pushed a commit
to abikouo/amazon.aws
that referenced
this issue
Oct 24, 2023
…l_response_codes is set (ansible-collections#1354) elb_target_group make health_check_protocol required if health_check_path or successful_response_codes is set fixes: ansible-collections#29 SUMMARY health_check_path and successful_response_codes were previously silently dropped on the floor if health_check_protocol wasn't set. ISSUE TYPE Bugfix Pull Request COMPONENT NAME elb_target_group ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis <None>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
It seems that there is no way to query ec2 instances via multiple tag-key filters that have AND logic since
filters
is a dict andinclude_filters
treats all variations as OR conditions.Issue Type
Bug Report
Component Name
amazon.aws.aws_ec2
Ansible Version
ansible [core 2.14.2]
Collection Versions
AWS SDK versions
Configuration
No response
OS / Environment
No response
Steps to Reproduce
Expected Results
That there is a way to apply AND logic for multiple tag keys as per the aws command below:
This is in line with the AWS documentation which says that multiple filters with the same name are treated with the AND condition:
https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html#options
Actual Results
Both the
filters
version andinclude_filters
return instances that have either the tag Role defined or Team defined, but not explicitly the ones that only have both.Code of Conduct
The text was updated successfully, but these errors were encountered: