aws ec2 describe instances output is not getting filtered #7453
-
Describe the bugI am using bash and calling: However te result is empy. Expected BehaviorList of placement objects Current BehaviorNon Reproduction Stepsaws ec2 describe-instances --region eu-central-1 --filters "Name=tag-key,Values=Name" --query "Reservations[].Instances[].Placement[*]" Possible SolutionNo response Additional Information/ContextNo response CLI version usedaws-cli/1.18.147 Python/2.7.18 Linux/5.10.144-127.601.amzn2.x86_64 botocore/1.18.6 Environment details (OS name and version, etc.)run on EC2 instance via console |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @lesh3000 thanks for reaching out. Here is the I think the snippet you're looking for is something like:
Does that accomplish what you're trying to do? Please let us know. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Thanks @lesh3000 for following up. You can read more about client-side filtering with the AWS CLI here: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html#cli-usage-filter-client-side. Also since this was a guidance-related question, I'm going to convert it to a GitHub discussion per our issue triage process. Please let us know if you had any additional questions or feedback. |
Beta Was this translation helpful? Give feedback.
Thanks @lesh3000 for following up. You can read more about client-side filtering with the AWS CLI here: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html#cli-usage-filter-client-side.
Also since this was a guidance-related question, I'm going to convert it to a GitHub discussion per our issue triage process. Please let us know if you had any additional questions or feedback.