<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Small Tip: How to use AWS CLI &#8216;&#8211;filter&#8217; parameter</title>
	<atom:link href="http://blog.xi-group.com/2015/01/small-tip-how-to-use-aws-cli-filter-parameter/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.xi-group.com/2015/01/small-tip-how-to-use-aws-cli-filter-parameter/</link>
	<description>High-quality DevOps Services</description>
	<lastBuildDate>Fri, 28 Oct 2016 15:44:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.2</generator>
	<item>
		<title>By: Felipe Marques</title>
		<link>http://blog.xi-group.com/2015/01/small-tip-how-to-use-aws-cli-filter-parameter/#comment-841</link>
		<dc:creator><![CDATA[Felipe Marques]]></dc:creator>
		<pubDate>Fri, 28 Oct 2016 15:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xi-group.com/?p=362#comment-841</guid>
		<description><![CDATA[You can make this too:

aws --profile=joox-elbs ec2 describe-instances --instance-ids={&quot;i-242efb14&quot;,&quot;i-2a1736d2&quot;}]]></description>
		<content:encoded><![CDATA[<p>You can make this too:</p>
<p>aws &#8211;profile=joox-elbs ec2 describe-instances &#8211;instance-ids={&#8220;i-242efb14&#8243;,&#8221;i-2a1736d2&#8243;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WilliamBish</title>
		<link>http://blog.xi-group.com/2015/01/small-tip-how-to-use-aws-cli-filter-parameter/#comment-682</link>
		<dc:creator><![CDATA[WilliamBish]]></dc:creator>
		<pubDate>Fri, 06 May 2016 19:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xi-group.com/?p=362#comment-682</guid>
		<description><![CDATA[I truly appreciate this forum topic.Thanks Again. Fantastic.]]></description>
		<content:encoded><![CDATA[<p>I truly appreciate this forum topic.Thanks Again. Fantastic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivo Vachkov</title>
		<link>http://blog.xi-group.com/2015/01/small-tip-how-to-use-aws-cli-filter-parameter/#comment-493</link>
		<dc:creator><![CDATA[Ivo Vachkov]]></dc:creator>
		<pubDate>Thu, 10 Dec 2015 22:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xi-group.com/?p=362#comment-493</guid>
		<description><![CDATA[Thanks for the clarification, Adam! Duly noted.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the clarification, Adam! Duly noted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram</title>
		<link>http://blog.xi-group.com/2015/01/small-tip-how-to-use-aws-cli-filter-parameter/#comment-481</link>
		<dc:creator><![CDATA[Ram]]></dc:creator>
		<pubDate>Sat, 28 Nov 2015 10:19:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xi-group.com/?p=362#comment-481</guid>
		<description><![CDATA[Thanks. This post was really helpful.]]></description>
		<content:encoded><![CDATA[<p>Thanks. This post was really helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Davies</title>
		<link>http://blog.xi-group.com/2015/01/small-tip-how-to-use-aws-cli-filter-parameter/#comment-476</link>
		<dc:creator><![CDATA[Adam Davies]]></dc:creator>
		<pubDate>Fri, 20 Nov 2015 06:17:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xi-group.com/?p=362#comment-476</guid>
		<description><![CDATA[That&#039;s a nice list of filter examples... thanks!

However, I believe this invocation will return instances with a tag called &quot;Name&quot; regardless of the tag value:

`aws ec2 describe-instances --filter &quot;Name=instance-state-name,Values=running&quot; &quot;Name=tag-key,Values=Name&quot; &quot;Name=tag-value,Values=&#039;&#039;&quot;`

From the docs:

&gt; tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter &quot;tag-key=Purpose&quot; and the filter &quot;tag-value=X&quot;, you get any resources assigned both the tag key Purpose (regardless of what the tag&#039;s value is), and the tag value X (regardless of what the tag&#039;s key is). If you want to list only resources where Purpose is X, see the tag :key =*value* filter.

You should use:

`aws ec2 describe-instances --filter &quot;Name=instance-state-name,Values=running&quot; &quot;Name=tag:Name,Values=&#039;&#039;&quot;`]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s a nice list of filter examples&#8230; thanks!</p>
<p>However, I believe this invocation will return instances with a tag called &#8220;Name&#8221; regardless of the tag value:</p>
<p><code>aws ec2 describe-instances --filter "Name=instance-state-name,Values=running" "Name=tag-key,Values=Name" "Name=tag-value,Values=''"</code></p>
<p>From the docs:</p>
<p>&gt; tag-key &#8211; The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter &#8220;tag-key=Purpose&#8221; and the filter &#8220;tag-value=X&#8221;, you get any resources assigned both the tag key Purpose (regardless of what the tag&#8217;s value is), and the tag value X (regardless of what the tag&#8217;s key is). If you want to list only resources where Purpose is X, see the tag :key =*value* filter.</p>
<p>You should use:</p>
<p><code>aws ec2 describe-instances --filter "Name=instance-state-name,Values=running" "Name=tag:Name,Values=''"</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
