-
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
ec2 inventory plugin: add support for a jmesquery query
filter
#232
Comments
Files identified in the description:
If these files are inaccurate, please update the |
The |
Thanks for diving deep into this! Client side filtering .. booo. So that I understand, the current |
Short version is, what's done today is done server-side. The key line is: There's a little bit of magic goes into generating the filters, but what's being called is ultimately https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Client.describe_instances with the Filters parameter which is painfully limited (not all AWS services even support server side filtering :( ). |
I close this since we don't plan to go any further. #328 gives a better solution to address the problem. |
* Fully support mixed instance policy Previously, setting instances_distribution was not supported. instances_distribution should be supported, to allow users to enable spot instances within their mixed instance ASGs. Note: The type and significance of the mixed_instance_policy has changed. It now captures all of the mixed_instance_policy configuration parameters, rather than just a list of instance types. Fixes ansible-collections#231 * Restore mixed_instances_policy backwards-compat Restore mixed_instances_policy backwards compatibility by using mixed_instances_policy_full to return full dictionary. Also, fix some doc typos, add CHANGELOG fragment, and split into separate test case. Addresses feedback in ansible-collections#232 * Only return mixed_instances_policy_full if set
* Fully support mixed instance policy Previously, setting instances_distribution was not supported. instances_distribution should be supported, to allow users to enable spot instances within their mixed instance ASGs. Note: The type and significance of the mixed_instance_policy has changed. It now captures all of the mixed_instance_policy configuration parameters, rather than just a list of instance types. Fixes ansible-collections#231 * Restore mixed_instances_policy backwards-compat Restore mixed_instances_policy backwards compatibility by using mixed_instances_policy_full to return full dictionary. Also, fix some doc typos, add CHANGELOG fragment, and split into separate test case. Addresses feedback in ansible-collections#232 * Only return mixed_instances_policy_full if set
* Fully support mixed instance policy Previously, setting instances_distribution was not supported. instances_distribution should be supported, to allow users to enable spot instances within their mixed instance ASGs. Note: The type and significance of the mixed_instance_policy has changed. It now captures all of the mixed_instance_policy configuration parameters, rather than just a list of instance types. Fixes ansible-collections#231 * Restore mixed_instances_policy backwards-compat Restore mixed_instances_policy backwards compatibility by using mixed_instances_policy_full to return full dictionary. Also, fix some doc typos, add CHANGELOG fragment, and split into separate test case. Addresses feedback in ansible-collections#232 * Only return mixed_instances_policy_full if set
SUMMARY
It's possible to pass a jmespath filter
describe_instances
through the query parameter.At this stage, this is an investigation and one of the problem I see is that we don't want to break the consistency the final JSON structure.
See: #186
ISSUE TYPE
COMPONENT NAME
The text was updated successfully, but these errors were encountered: